cygrunsrv does not start cygsshd at boot
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Wed Jan 29 06:39:00 GMT 2020
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 native Windows service controller commands, than tweaking the registry:
>>
>> sc config cygsshd start= delayed-auto
>
> Agreed, reg is useful for checking and doing in non-scripting languages.
>
>> Also, you won't need (or generally want) to use service pre-shutdown, as it can cause a very long delay when Windows restarts.
If you mean by "delay when restarts" => "before shutdown", it may take up to
three (3) minutes by default before Windows times out preshutdown services, then
it may take up to two (2) minutes by default before Windows times out service
process shutdown.
Is that not better than abruptly terminating an sshd session, or abandoning
sending a large email?
I would expect UPS shutdown handlers to do whatever is required to expedite a
speedy shutdown within a a few tens of ms/a mains power cycle or two.
>> https://docs.microsoft.com/en-us/windows/win32/services/service-control-handler-function
>
> Don't see where you read that?
> Preshutdown happens before regular service shutdown starts.
> Nothing to do with startup or restart!
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
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
More information about the Cygwin
mailing list