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: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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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" To: cygwin AT cygwin DOT com Subject: Re: cygrunsrv does not start cygsshd at boot Message-ID: <20200123155447.GA8034@ti129.telemetry-investments.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> 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 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