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. > 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