X-Recipient: archive-cygwin@delorie.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=gFCdar1H/sFfwLa7
	JDqsYObLHAn2eNLBk7s1c+gcrMOsdNaZvzPbKB2NFgxrdiAEwZRPodvsP1OJWaoe
	coi68rrYXp2hRJR5DUxce05OdfEpVPEZ37Q/0tEJ6g/0PM0/awIN2eXy7hAtk5on
	anzKumxWVM0ChV2RUqpmUKVq94s=
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=lFyvRF7TDIImIfvIjSnBD9
	1SwXs=; b=Q2pRPMC/PE0GG7fChSALMQq/NNiff3qlv/h13GwfDi2tyd9e0A6MBr
	AjaFNnnsBkTESdCgdf6HrMLkmFV9+8yYlcP0MoHOhc8YngqU13uhKukGkc3RLg8M
	qhwuIO8nmDd4FY6s0hU8wF2LBPQPMYHHmTDs74WIgCxBkC8/lJKK4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Repin, Andrey, andrey, repin
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: cygrunsrv does not start cygsshd at boot
To: cygwin@cygwin.com
References: <20200121170233.GA24346@ti129.telemetry-investments.com> <87pnfca6mc.fsf@Rainer.invalid> <20200122160541.GA28483@ti129.telemetry-investments.com> <87muafs6bk.fsf@Otto.invalid> <fb56f8c5-8b93-655e-f949-d7f7a52a073f@SystematicSw.ab.ca> <0c9985fb-3b9b-0370-53b5-f49036d775d8@SystematicSw.ab.ca> <916514140.20200129002639@yandex.ru>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Message-ID: <b40abb5b-3f4b-fb6e-8984-4185b2ea1685@SystematicSw.ab.ca>
Date: Tue, 28 Jan 2020 15:21:30 -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: <916514140.20200129002639@yandex.ru>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2020-01-28 14:26, Andrey Repin wrote:
>> $ cygrunsrv -VQ cygsshd
>> Service             : cygsshd
>> Display name        : CYGWIN sshd
>> Current State       : Running
>> Controls Accepted   : Stop, Preshutdown
>> Command             : /usr/sbin/sshd -D
>> stdin path          : /dev/null
>> stdout path         : /var/log/cygsshd.log
>> stderr path         : /var/log/cygsshd.log
>> Process Type        : Own Process
>> Startup             : Manual
>> Dependencies        : dnscache, cygserver, syslog-ng
> 
> I strongly suggest adding "tcpip" here.

No - causes problems as tcpip is a kernel driver which is early and low level
BOOT_START - other BOOT_START and SYSTEM_START kernel drivers and services
depend on tcpip, and later AUTO_START services like dhcp and dnscache depend on
those - once those are available, we have a gateway, resolver, and the other
network services which we need available to use the network, which is why we
need to start Cygwin network services as Delayed auto start
(HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd Start=2
DelayedAutostart=1) and Preshutdown (cygrunsrv -O, --preshutdown
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd/Parameters
Preshutdown=1).

-- 
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

