提交 15c66f0d 编写于 作者: K Kohsuke Kawaguchi

[FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down

上级 d74253c5
......@@ -52,6 +52,9 @@ Upcoming changes</a>
<li class=bug>
Fixed a JVM dependency in debian package so that it can run with OpenJDK
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-8159">issue 8159</a>)
<li class=rfe>
Debian package will force-terminate Jenkins if it fails to shut down in 5 seconds.
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-5415">issue 5415</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -147,11 +147,13 @@ do_stop()
0)
$DAEMON $DAEMON_ARGS --stop || return 2
# wait for the process to really terminate
while true;
do
for n in 1 2 3 4 5; do
sleep 1
$DAEMON $DAEMON_ARGS --running || break
done
if get_daemon_status; then
force_stop || return 3
fi
;;
*)
force_stop || return 3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册