Hello. I am sorry, this is a double post: i first used the Github repo discussion tab but realized the actual discussion is happening here :)
Here is my question :
I am currently using version 2.10.3.
I notice that service start and stop work fine : my executable, that takes quite a long time to stop (I added Sleep() calls to debug its termination and it takes more than 10 sec), goes to the end of the stopping sequence with no issues.
However, when Windows is asked to shut down (Windows 10 1909), it seems the child processes are killed before their closing sequence is completely performed.
I have read on this : https://www.howtogeek.com/282062/control-how-long-windows-waits-before-killing-apps-at-shutdown/
that Windows enforces a hard limit on executable shutdown time that can only be set through registry but it is a bit unclear to me. I also read about the pre-shutdown even but am not sure whether WinSW deals with it (the source code, at least in the 2.x branch, does not seem to use it)
Can you please shed some light on what I must do, both in my code/config and perhaps in Windows registry, to make sure my child processes are not forcefully terminated upon normal system shutdown ?
Thank you very much (and sorry for my non native English :) )