From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62640 invoked by alias); 28 Jan 2020 22:28:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 62627 invoked by uid 89); 28 Jan 2020 22:28:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Lavrentiev, NLM, ncbi, NCBI X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2020 22:28:40 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id wZLZiC5V717ZDwZLai2nHA; Tue, 28 Jan 2020 15:28:38 -0700 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: cygrunsrv does not start cygsshd at boot To: "'cygwin@cygwin.com'" References: From: Brian Inglis Message-ID: <32e5fb73-7965-467d-8fe5-2ac08eb4e16e@SystematicSw.ab.ca> Date: Tue, 28 Jan 2020 22:28:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00282.txt.bz2 On 2020-01-28 14:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: >> As the reg entries show, you can also do this by adding or setting registry >> entries using Cygwin regtool, Windows reg, or regedit commands. > > It is better and much safer to use native Windows service controller commands, than tweaking the registry: > > sc config cygsshd start= delayed-auto Agreed, reg is useful for checking and doing in non-scripting languages. > Also, you won't need (or generally want) to use service pre-shutdown, as it can cause a very long delay when Windows restarts. > https://docs.microsoft.com/en-us/windows/win32/services/service-control-handler-function Don't see where you read that? Preshutdown happens before regular service shutdown starts. Nothing to do with startup or restart! -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple