From dbd72ada16ba1ad58aea1adc7dba721e7e925369 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 17 May 2015 16:30:56 +0200 Subject: [PATCH] Make ntp init script correctly stop the service Tell start-stop-daemon to wait for it to exit, and retry with KILL if TERM isn't enough. Signed-off-by: Julien Cristau --- modules/ntp/files/ntp.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ntp/files/ntp.init b/modules/ntp/files/ntp.init index 3a5ccc5d0..6a2bfe86e 100755 --- a/modules/ntp/files/ntp.init +++ b/modules/ntp/files/ntp.init @@ -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 ;; -- 2.20.1