Getting timeout error when stopping exe running as Service with nssm
I was able to easily create my exe using pkg. I then used nssm (https://nssm.cc/usage) to create and run my exe as a Windows Service.
Unfortunately, when I try to Stop the service, it results in a Windows error 1053 (service did not respond in a timely manner).
nssm has four stages it uses to shut down the application, and by default it attempts all four in order of CONTROL-C event first, WM_CLOSE message, WM_QUIT message, and lastly a TerminateProcess() to Windows OS.
I expected the CONTROL-C would work since this is successful method when running the exe in CLI.
Has anyone else had similar issue and resolved it?
Hi Igor, Thank you for reviewing this issue. I was wondering if you might have a possible guess at when a patch might be available? For now, we are having to cure the hang-up after the Stop command by killing the process manually.
It's indeed sucking Service Manager, because it's been 2 years and it still doesn't stop properly.
duplicate of #137
there is something wrong with pkg