Navigation Menu

Skip to content

Commit

Permalink
[FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down
Browse files Browse the repository at this point in the history
Originally-From: jenkins-ci.org/commit/core/15c66f0d201471db7c8ae361633c9f5acb632d2c
  • Loading branch information
kohsuke committed Feb 4, 2011
1 parent 20d9818 commit ac90708
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions debian/jenkins.init
Expand Up @@ -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
Expand Down

0 comments on commit ac90708

Please sign in to comment.