Re: cygrunsrv does not start cygsshd at boot

2020-01-29 Thread Brian Inglis
On 2020-01-29 11:55, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: >> Don't see where you read that? > > The service control manager waits until the service stops or the specified > preshutdown time-out value expires (this value can be set with the > ChangeServiceConfig2 function). This

Re: cygrunsrv does not start cygsshd at boot

2020-01-29 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
> Don't see where you read that? The service control manager waits until the service stops or the specified preshutdown time-out value expires (this value can be set with the ChangeServiceConfig2 function). This control code should be used only in special circumstances, because a service that h

Re: cygrunsrv does not start cygsshd at boot

2020-01-28 Thread Brian Inglis
On 2020-01-28 15:28, Brian Inglis wrote: > On 2020-01-28 14:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: >>> 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 na

Re: cygrunsrv does not start cygsshd at boot

2020-01-28 Thread Brian Inglis
On 2020-01-28 14:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: >> 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, t

Re: cygrunsrv does not start cygsshd at boot

2020-01-28 Thread Brian Inglis
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 >> stdo

Re: cygrunsrv does not start cygsshd at boot

2020-01-28 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
> 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,

Re: cygrunsrv does not start cygsshd at boot

2020-01-28 Thread Andrey Repin
Greetings, Brian Inglis! > $ 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/

Re: cygrunsrv does not start cygsshd at boot

2020-01-23 Thread Andrew J. Schorr
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

Re: cygrunsrv does not start cygsshd at boot

2020-01-22 Thread Brian Inglis
On 2020-01-22 15:08, Brian Inglis wrote: > On 2020-01-22 11:18, ASSI wrote: >> Andrew J. Schorr writes: [add cygrunsrv output for completeness] Try to set the service to "delayed start" instead and see if that helps. >>> >>> Thanks for the suggestion; that seems to fix the issue. Is this a k

Re: cygrunsrv does not start cygsshd at boot

2020-01-22 Thread Brian Inglis
On 2020-01-22 11:18, ASSI wrote: > Andrew J. Schorr writes: >>> Try to set the service to "delayed start" instead and see if that helps. >> >> Thanks for the suggestion; that seems to fix the issue. Is this a known >> problem due to some updates to Windows 10 and/or Cygwin? I have not had >> this p

Re: cygrunsrv does not start cygsshd at boot

2020-01-22 Thread ASSI
Andrew J. Schorr writes: >> Try to set the service to "delayed start" instead and see if that helps. > > Thanks for the suggestion; that seems to fix the issue. Is this a known > problem due to some updates to Windows 10 and/or Cygwin? I have not had > this problem in the past. Win10 is better at

Re: cygrunsrv does not start cygsshd at boot

2020-01-22 Thread Andrew J. Schorr
On Tue, Jan 21, 2020 at 09:37:15PM +0100, Achim Gratz wrote: > Andrew J. Schorr writes: > > How do I fix and/or troubleshoot this? I need to find a way to get > > cygsshd to start automatically when the system reboots. > > Try to set the service to "delayed start" instead and see if that helps. T

Re: cygrunsrv does not start cygsshd at boot

2020-01-21 Thread Achim Gratz
Andrew J. Schorr writes: > This matches the configuration I have on a previously installed system > running 3.0.7 that works correctly. > > The log file /var/log/cygsshd.log is empty. I have attached the output > of "cygcheck -s -v -r > /tmp/cygcheck.out". > > How do I fix and/or troubleshoot this?

cygrunsrv does not start cygsshd at boot

2020-01-21 Thread Andrew J. Schorr
Hi, Over the weekend, I did a fresh install of Windows 10 Pro x86_64 and then installed Cygwin x86_64 3.1.2. I ran ssh-host-config, and cygsshd starts and works as expected when I run "cygrunsrv --start cygsshd". But the cygsshd service is not started automatically when the system reboots. I must