Make ntp init script correctly stop the service
authorJulien Cristau <jcristau@debian.org>
Sun, 17 May 2015 14:30:56 +0000 (16:30 +0200)
committerJulien Cristau <jcristau@debian.org>
Sun, 17 May 2015 14:32:12 +0000 (16:32 +0200)
Tell start-stop-daemon to wait for it to exit, and retry with KILL if
TERM isn't enough.

Signed-off-by: Julien Cristau <jcristau@debian.org>
modules/ntp/files/ntp.init

index 3a5ccc5..6a2bfe8 100755 (executable)
@@ -65,7 +65,7 @@ case $1 in
                ;;
        stop)
                log_daemon_msg "Stopping NTP server" "ntpd"
-               start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
+               start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --retry 5
                log_end_msg $?
                rm -f $PIDFILE
                ;;