From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14068 invoked by alias); 23 Jan 2020 15:54:50 -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 14057 invoked by uid 89); 23 Jan 2020 15:54:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=12PM, 12pm, services X-HELO: sv3.telemetry-investments.com Received: from gw3a.telemetry-investments.com (HELO sv3.telemetry-investments.com) (38.76.0.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Jan 2020 15:54:49 +0000 Received: from ti129.telemetry-investments.com (ti129 [192.168.53.129]) by sv3.telemetry-investments.com (Postfix) with ESMTP id B42282C7 for ; Thu, 23 Jan 2020 10:54:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telemetry-investments.com; s=tele1409; t=1579794887; bh=vs/4uJocV7OnDDLxB4pEpF2veLap96mE6WhxvK//E9Q=; h=Date:From:To:Subject:References:In-Reply-To; b=1F4hUdr3GTjkh0JUm7sKKvQbS9QjqTPA+7F1IjpvJrLt8+trRRan7dUqol8PaMISY 5hlaY7vjbANN2A9F/lGu/26J+hf4zkRxhkKyCXILxFTpEmgzyMtp3Vvi66RlUb1nnY qHkczfvMGEUlr9XxIpIw3eD7E6xh4s1kQQ0Awe5s= Received: by ti129.telemetry-investments.com (Postfix, from userid 300) id 8D6DC3EC; Thu, 23 Jan 2020 10:54:47 -0500 (EST) Date: Thu, 23 Jan 2020 15:54:00 -0000 From: "Andrew J. Schorr" To: cygwin@cygwin.com Subject: Re: cygrunsrv does not start cygsshd at boot Message-ID: <20200123155447.GA8034@ti129.telemetry-investments.com> References: <20200121170233.GA24346@ti129.telemetry-investments.com> <87pnfca6mc.fsf@Rainer.invalid> <20200122160541.GA28483@ti129.telemetry-investments.com> <87muafs6bk.fsf@Otto.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00213.txt.bz2 On Wed, Jan 22, 2020 at 03:08:12PM -0700, Brian Inglis wrote: > 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 ... > $ sc query cygsshd ... > $ regtool -pv list > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd/ > ... > $ regtool -pv list > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/cygsshd/Parameters/ > ... > As the reg entries show, you can also do this by adding or setting registry > entries using Cygwin regtool, Windows reg, or regedit commands. Thanks. I was not familiar with the sc and regtool commands. For now, using automatic (delayed start) seems to be adequate for solving my problem. Regards, Andy -- 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