Apache常见守护进程 - procrun。停止服务挂起

时间:2016-01-19 10:54:01

标签: java apache apache-commons procrun prunsrv

您好我安装了我的java服务来运行apache常见守护进程prunsrv。我有问题阻止它。有时从windowse服务控制台重新启动服务时它会挂起;奇怪的是,我的服务正确停止,如apache日志中所示。问题似乎与此https://issues.apache.org/jira/browse/DAEMON-288相同,即使修复程序似乎已在0.15版本中实现。对于版本0.14,问题不存在但随机使用0.14版本重新启动服务(不适合我的需要)。 这里有显示服务停止的日志:

[2016-01-19 11:12:52] [info]  [ 2036] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-01-19 11:12:53] [info]  [ 2036] Running 'xxxxxxx' Service...
[2016-01-19 11:12:53] [info]  [ 1400] Starting service...
[2016-01-19 11:12:54] [info]  [ 1400] Service started in 1546 ms.
[2016-01-19 11:58:50] [info]  [ 2648] Stopping service...
[2016-01-19 11:58:51] [info]  [ 2648] Service stop thread completed.

之后,Windows服务控制台会打印“stopping service”并在一段时间后(我认为1分钟)显示“Windows could not stop the service on local computer. Error 1053: The service did not respond to the start or control request in a timely fashion”;然后该服务无法重启(Windows服务控制台继续将其指示为stopping),我们必须重启机器。

有没有人遇到同样的问题?

由于

0 个答案:

没有答案
相关问题