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:date:from:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; q=dns; s=default; b=C5MO
	dhR+lUodiuAati/oFOfb8Mraf1A0R5ocKn8S9pLhPndRyI3/w0FM69E5UKqu/F1q
	fuELIl9ieFkaIHal+5clXBn9vDskyHLlQIOeBpcdLwdo09uhybhydzclFkBdkUiz
	9ObjJjFV2Vor736bvBByIeKGXLj45qWjfYxI7J8=
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:date:from:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; s=default; bh=Ep6X0LkRoo
	v+ieeVOlElgx2e4Fo=; b=PkdKT+GNoS0Z7imtG+8W4IwelaUuJkluMlD7XKmMZP
	rnmNhzLW6EZcpR+UdNns0Et+ZrKfRZ2IsdqAg28hijDQATlfaDA9VjTMcVCZJU/x
	7cGon2T04xoJhykLzAfR++/Ymt8HoYvPjH2xgvSOtKUvGlzi/f4OnFnMu7dqDRjI
	c=
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.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
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=
Date: Thu, 23 Jan 2020 10:54:47 -0500
From: "Andrew J. Schorr" <aschorr@telemetry-investments.com>
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> <fb56f8c5-8b93-655e-f949-d7f7a52a073f@SystematicSw.ab.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <fb56f8c5-8b93-655e-f949-d7f7a52a073f@SystematicSw.ab.ca>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

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

