]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 78f9c2f7556e14bc19dcdf63e07766d61d390a4d..e8e3dec9dda5730117863773923a08478aae5450 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