Merge "Stop the elastic-recheck bot more gracefully"
This commit is contained in:
commit
19c88d57d0
@ -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/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user