When using Apache commons daemon - procrun to run Java apps on Windows XP 32 bit platform, how to gracefully stop service?
I have read procrun documentation and set time out 120 seconds while registering service. This is not working as intended. Windows shuts down without waiting for the said time period.
While searching on internet found that Windows service has a structure and this is included in procrun.
Now the question is how to make a service accept shutdown using procrun?
FYI: Service stopping using any of the below three ways is graceful
- net stop service-name
- service-name.exe stop
- services.msc