嗨,我安装了我的 java 服务以通过 apache common daemons prunsrv 运行。我有问题阻止它。有时从 windows 服务控制台重新启动服务时,它会挂起;奇怪的是,我的服务已正确停止,如 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
),我们必须重启机器。
有没有人遇到过同样的问题?
谢谢