delorie.com/archives/browse.cgi | search |
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=r+y/viQHo95y/qXi | |
HNC10IR1mFPF65LdBYx7hZpKVUyXRX75hsmibAK9s/UKtldRjjtRqIg+pQMEaKr4 | |
r689dg3h2mc9vyUC14tkjsUvbknYcdcbLEpNGK3w//YKUZARI7tFHcDe5Bd7WqlM | |
K4v/WHL4EMqNj3BJA3N5BSNkazU= | |
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=XzPaMttJR9l3D4+0ZFyixb | |
Au210=; b=WCo9efbaHkKA3USH+IsUzxxX2BXIusKtYm1mr/DMlNDP0HS0EWtZT4 | |
GqUnTgvxQu5id0CWy/Kj638T5w8Okg5IGXqj02w6UoZwBC/hqDNuWBTbMlh925R5 | |
j16YOpcGs24fABG2CmB0t+wKLPzebrrLaYNgDL3GB6H1hOmwHte4M= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=STATE, Services, readers, H*i:sk:87muafs |
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: | <20200121170233 DOT GA24346 AT ti129 DOT telemetry-investments DOT com> <87pnfca6mc DOT fsf AT Rainer DOT invalid> <20200122160541 DOT GA28483 AT ti129 DOT telemetry-investments DOT com> <87muafs6bk DOT fsf AT Otto DOT invalid> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Message-ID: | <fb56f8c5-8b93-655e-f949-d7f7a52a073f@SystematicSw.ab.ca> |
Date: | Wed, 22 Jan 2020 15:08:12 -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: | <87muafs6bk.fsf@Otto.invalid> |
X-IsSubscribed: | yes |
On 2020-01-22 11:18, ASSI wrote: > Andrew J. Schorr writes: >>> Try to set the service to "delayed start" instead and see if that helps. >> >> Thanks for the suggestion; that seems to fix the issue. Is this a known >> problem due to some updates to Windows 10 and/or Cygwin? I have not had >> this problem in the past. > > Win10 is better at starting fast (including parallelization of startup > across the available cores) and just the fact that TCP/IP is up seems > not enough for sshd to function correctly. I've used dnscache for network service dependencies (and cygserver and syslog-ng for other Cygwin services) with delayed start and preshutdown (cygrunsrv -O, --preshutdown). Where previous usage was cygrunsrv -t, --type manual is now called demand service startup type. You can set service startup type using: $ sc config cygsshd start= boot|system|auto|demand|disabled|delayed-auto # option flag requires = and the value must be a separate argument and check them using: $ sc query cygsshd SERVICE_NAME: cygsshd TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, ACCEPTS_PRESHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 $ sc qc cygsshd [SC] QueryServiceConfig SUCCESS SERVICE_NAME: cygsshd TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 3 DEMAND_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : C:\...\bin\cygrunsrv.exe LOAD_ORDER_GROUP : TAG : 0 DISPLAY_NAME : CYGWIN sshd DEPENDENCIES : dnscache : cygserver : syslog-ng SERVICE_START_NAME : LocalSystem $ regtool -pv list /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd/ ... Start (REG_DWORD) = 0x00000002 (2) # [auto] DelayedAutostart (REG_DWORD) = 0x00000001 (1) # [delayed] ... $ regtool -pv list /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd/Parameters/ ... Preshutdown (REG_DWORD) = 0x00000001 (1) # [preshutdown] ... As the reg entries show, you can also do this by adding or setting registry entries using Cygwin regtool, Windows reg, or regedit commands. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |