pkg icon indicating copy to clipboard operation
pkg copied to clipboard

Getting timeout error when stopping exe running as Service with nssm

Open slmmm opened this issue 9 years ago • 4 comments

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?

slmmm avatar Jun 16 '17 22:06 slmmm

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.

slmmm avatar Jun 23 '17 17:06 slmmm

It's indeed sucking Service Manager, because it's been 2 years and it still doesn't stop properly.

Delitants avatar Oct 28 '19 07:10 Delitants

duplicate of #137

hipstersmoothie avatar Mar 23 '21 16:03 hipstersmoothie

there is something wrong with pkg

introspection3 avatar Nov 03 '23 02:11 introspection3