This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygrunsrv does not start cygsshd at boot
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin at cygwin dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Cc: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- Date: Tue, 28 Jan 2020 21:56:16 +0000
- Subject: Re: cygrunsrv does not start cygsshd at boot
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q1KBQ+IwEl61no6nzc91wEyzPKEjLJti+IdQwv3DfvA=; b=WWsAnUjf7Sacl3CSlTyi7v/ZPczF5r7hXJSmkuzSHofCJl6PoXTGJhPLGdzqOD7Bl0zmluMDxYRnBjOICkznjZb851off2zRa9h8xiU1Ns1HuwcYC2GDnb3be+p+YWFNPFulCwkFarp44mmnl7cr9vBr9n05ZZQzYE39RzoQ2U7EWJxOlAPxrVAFX9lZMP0JfpCLARW5zR43cLS7BcJq26aRIAx9RC7pJTiwS2l2TWsQXB9eNl8c6yUihRiCU8urrnSdk5RCdlapzw+XJFNXgGkS/XWjwVl2ZQ+cwlNnW7cdq4EnkiltFa9O1AiIukiJ7zfxTt7y/dQ52U2ZH/9UMQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q1J9/w3i2iWuPwXatpbcLqux6kRkbkCSmSHLOOfIl4O/usxUGQ0eKqjLIJBUCyBZV+hZYLvoD66/fHNbU/wqfFp6guOsMat0x5SVzBSJztOfcEpVx64eaM18wKDZrc/Yp4GnD+bitq3yYs59j0D7siwdK8HQORfcdZgRHHgIO4ji9msbSU4wXveLwjWI2lLfRKTErVMvaSIJpYWvVeNDTGNSAmZR07yb7bQPScqlnN/e4EugSjxk1DVQA7yHIF2EDhLpqgEX7A1BxO75mWdDlMxdpZrslZwO7n3/uJxKIql4/eimTwtNi3bNYKWxmLqX/lqiUNnRo6z/gH9PbacUQQ==
- Ironport-sdr: gU6lzy5tgo8U2IFpHASWjfcE26ROdYjQjLMi+ew6Vr8BLwsysXzr4Enujhzpb7YvYPLbd53ZSs cToJ6Ck5FQ7A==
- Reply-to: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
> As the reg entries show, you can also do this by adding or setting registry
> entries using Cygwin regtool, Windows reg, or regedit commands.
It is better and much safer to use native Windows service controller commands, than tweaking the registry:
sc config cygsshd start= delayed-auto
Also, you won't need (or generally want) to use service pre-shutdown, as it can cause a very long delay when Windows restarts.
https://docs.microsoft.com/en-us/windows/win32/services/service-control-handler-function
My $.02
--
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