Make /etc/init.d/unbound stop wait for it to exit
authorJulien Cristau <jcristau@debian.org>
Sun, 17 May 2015 14:47:03 +0000 (16:47 +0200)
committerJulien Cristau <jcristau@debian.org>
Sun, 17 May 2015 14:50:09 +0000 (16:50 +0200)
Will hopefully make restart more reliable under systemd.

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

index 78f9c2f..e8e3dec 100755 (executable)
@@ -121,7 +121,7 @@ case "$1" in
     stop)
         if $UNBOUND_ENABLE; then
             log_daemon_msg "Stopping $DESC" "$NAME"
-            if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --name $NAME; then
+            if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --name $NAME --retry 5; then
                 do_resolvconf_stop
                 log_end_msg 0
             else