From 9c4a9fe65ae1cb418b828bc72583fb2cfdcd3cff Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 17 May 2015 16:47:03 +0200 Subject: [PATCH] Make /etc/init.d/unbound stop wait for it to exit Will hopefully make restart more reliable under systemd. Signed-off-by: Julien Cristau --- modules/unbound/files/unbound.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1