Details
Description
Using Windows services manager (services.msc) to start/stop service.
Service installed with the following start/stop settings.
#service parameters
service.class=com.myserver.launcher.tomcat.Tomcat8Service
service.id=myappservice
service.startup=auto
service.name=myappservice
service.description=my app service
Service starts OK.
When I use services manager to stop the service, the application stops running but the my service is not getting terminates (myappserver.exe) process does not terminate.
Eventually the services manager reports that:
"Windows could not stop the <MyServiceName> service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion."
The service then stays at status "stopping" & cannot be stopped
Looking at the application logs I can see that the application's stop() method gets called -
com.myserver.launcher.tomcat.Tomcat8Service.java extends the WinRun4j --> AbstractService.java
We have our own tomcat-launcher which internally invokes the org.apache.catalina.startup.Bootstrap.stop() method to stop the tomcat. However it is not able to kill the myappserver.exe process. .
Any pointer would really helpful.
Attachments
Issue Links
- is a clone of
-
DAEMON-298 Windows service fails to stop with error code 1053 (using Windows 7 service manager)
- Resolved