X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ve/xN+Wn3DSowkLw d7QNWC9qcFYiiGd4gFqHUJbGFly3m5+iJPnt6H2rJZfePJo14dINfiGGj75RQfnp SRvxhCrgeLXXFCVE+IupG/OYAX6Can6/96RCCfa5hkeg5+W5zvH+CejG/a715zeo qHZP+IhOXf3UtO9u/bxoV7TPc4o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=TzRGyx2grvyRlfe7nP8P1G yw3TE=; b=UUX2PlDKr66RGaVZf7hsvQ/tEi5DKfUxfpJbK0+UNiyRkzr8TxvMe/ CnNVZQBLQda3u6mc+QnhJU/3PFMYocEwm0D6/nUFVlfz8fKwai0sXqFxzYNOA2ip PIwj4rEdoAOLbhJwHl8TZ4tsGFlt6uU4RZOWW28zu3VqIWTXmrXCI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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=H*f:sk:32e5fb7, expedite, mains, H*i:sk:32e5fb7 X-HELO: smtp-out-so.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: cygrunsrv does not start cygsshd at boot To: cygwin AT cygwin DOT com References: <32e5fb73-7965-467d-8fe5-2ac08eb4e16e AT SystematicSw DOT ab DOT ca> From: Brian Inglis Message-ID: Date: Tue, 28 Jan 2020 23:39:36 -0700 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: <32e5fb73-7965-467d-8fe5-2ac08eb4e16e@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2020-01-28 15:28, Brian Inglis wrote: > 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. If you mean by "delay when restarts" => "before shutdown", it may take up to three (3) minutes by default before Windows times out preshutdown services, then it may take up to two (2) minutes by default before Windows times out service process shutdown. Is that not better than abruptly terminating an sshd session, or abandoning sending a large email? I would expect UPS shutdown handlers to do whatever is required to expedite a speedy shutdown within a a few tens of ms/a mains power cycle or two. >> 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