[ https://issues.apache.org/jira/browse/DAEMON-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060329#comment-16060329 ]
Consultant Leon commented on DAEMON-366: ---------------------------------------- Service is installed with the following settings: //IS//%SERVICE_NAME% ^ --Description="FusionFabric Connect (%APP_CONF%)" ^ --DisplayName="%SERVICE_NAME%" ^ --LogPath="%APP_LOGDIR%" ^ --StdOutput=auto ^ --StdError=auto ^ --Jvm="%JAVA_DLL_PATH%" ^ --JvmMs=512 ^ --JvmMx=8192 ^ ++JvmOptions=-XX:+UseConcMarkSweepGC ^ ++JvmOptions=-XX:MaxGCPauseMillis=2000 ^ ++JvmOptions=-XX:GCTimeRatio=10 ^ ++JvmOptions=-XX:+CMSIncrementalMode ^ ++JvmOptions=-XX:+CMSIncrementalPacing ^ ++JvmOptions=-XX:+DisableExplicitGC ^ ++JvmOptions="-DAPP.LOG_DIR=%APP_LOGDIR%" ^ ++JvmOptions="-DAPP.DATA_DIR=%APP_DATA%" ^ --StartMode=jvm ^ --StopMode=jvm ^ --StartClass=com.misys.tools.integration.director.WindowsServiceWrapper ^ --StopClass=com.misys.tools.integration.director.WindowsServiceWrapper ^ --StartPath="%APP_CONF%" ^ --StartParams="%SERVICE_NAME%" ^ ++StartParams="%APP_LOGDIR%" ^ ++StartParams=director.properties ^ %ARGS% ^ --StartMethod=start ^ --StopParams=%SERVICE_NAME% ^ --StopMethod=stop > CLONE - Windows service fails to stop with error code 1053 (using Windows 7 > service manager) > -------------------------------------------------------------------------------------------- > > Key: DAEMON-366 > URL: https://issues.apache.org/jira/browse/DAEMON-366 > Project: Commons Daemon > Issue Type: Bug > Components: Procrun > Affects Versions: 1.0.15 > Environment: Windows 7 64bit - using 64-bit prunsrv.exe in jvm mode > Using 64-bit Java JRE 1.8.0_73 > Reporter: Consultant Leon > Assignee: Guillaume Chauvet > Labels: prunsrv, stop, windows > > Using Windows services manager (services.msc) to start/stop service. > Service installed with the following start/stop settings. > --StartMode=jvm --StartClass=com.myorg.MyClass --StartMethod=start > --StopMode=jvm --StopClass=com.myorg.MyClass --StopMethod=stop > Service starts OK. > When I use services manager to stop the service, the application stops > running but the prunsrv.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 restarted without > first killing the prunsrv.exe process. > Looking at the application logs I can see that the application's stop() > method gets called - the final line in this method is a logging call which is > executing OK. > The commons-daemon-<date>.log file has the following entries: > [2013-05-09 17:18:02] [info] [10944] Commons Daemon procrun (1.0.15.0 > 32-bit) started > [2013-05-09 17:18:02] [info] [10944] Running '<MyServiceName>' Service... > [2013-05-09 17:18:02] [info] [ 9224] Starting service... > [2013-05-09 17:18:11] [info] [ 9224] Service started in 9202 ms. > [2013-05-09 17:18:23] [info] [10780] Stopping service... > [2013-05-09 17:18:24] [info] [10780] Service stop thread completed. > This problem does not occur in daemon versions 11->14. > I have only seen it in daemon-1.0.15 -- This message was sent by Atlassian JIRA (v6.4.14#64029)