From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35060 invoked by alias); 28 Jan 2020 22:21:36 -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 35052 invoked by uid 89); 28 Jan 2020 22:21:35 -0000 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 Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.139) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2020 22:21:33 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id wZEgiC2GM17ZDwZEhi2m5w; Tue, 28 Jan 2020 15:21:31 -0700 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> <0c9985fb-3b9b-0370-53b5-f49036d775d8@SystematicSw.ab.ca> <916514140.20200129002639@yandex.ru> From: Brian Inglis Message-ID: Date: Tue, 28 Jan 2020 22:21: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: <916514140.20200129002639@yandex.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00280.txt.bz2 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