diff --git a/files/elastic-recheck.init b/files/elastic-recheck.init index d32eaaf..68712ee 100644 --- a/files/elastic-recheck.init +++ b/files/elastic-recheck.init @@ -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/*