Merge "Stop the elastic-recheck bot more gracefully"

This commit is contained in:
Jenkins 2014-10-13 23:27:55 +00:00 committed by Gerrit Code Review
commit 19c88d57d0

View File

@ -68,7 +68,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --signal 9 --pidfile $PIDFILE
start-stop-daemon --stop --retry TERM/15/KILL/5 --pidfile $PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
rm -f /var/run/$NAME/*