From: Julien Cristau Date: Sun, 17 May 2015 14:47:03 +0000 (+0200) Subject: Make /etc/init.d/unbound stop wait for it to exit X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9c4a9fe65ae1cb418b828bc72583fb2cfdcd3cff;p=mirror%2Fdsa-puppet.git Make /etc/init.d/unbound stop wait for it to exit Will hopefully make restart more reliable under systemd. Signed-off-by: Julien Cristau --- diff --git a/modules/unbound/files/unbound.init b/modules/unbound/files/unbound.init index 78f9c2f75..e8e3dec9d 100755 --- a/modules/unbound/files/unbound.init +++ b/modules/unbound/files/unbound.init @@ -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