提交 1168ddff 编写于 作者: K Kohsuke Kawaguchi

[FIXED HUDSON-7937] Restarting Hudson via debian init script didn't wait for...

[FIXED HUDSON-7937] Restarting Hudson via debian init script didn't wait for the process to really terminate.
上级 7984e310
......@@ -48,6 +48,9 @@ Upcoming changes</a>
<li class=bug>
Slaves launched by JNLP fail to reprot their version numbers.
(<a href="http://issues.hudson-ci.org/browse/HUDSON-8060">issue 8060</a>)
<li class=bug>
Restarting Hudson via debian init script didn't wait for the process to really terminate.
(<a href="http://issues.hudson-ci.org/browse/HUDSON-7937">issue 7937</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -146,6 +146,12 @@ do_stop()
case "$?" in
0)
$DAEMON $DAEMON_ARGS --stop || return 2
# wait for the process to really terminate
while true;
do
sleep 1
$DAEMON $DAEMON_ARGS --running || break
done
;;
*)
force_stop || return 3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册