Get pubsub nodes from puppetdb
[mirror/dsa-puppet.git] / modules / unbound / files / unbound.init
index 78f9c2f..cb989a9 100755 (executable)
@@ -7,6 +7,7 @@
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 ### END INIT INFO
+# pidfile: /run/unbound.pid
 
 NAME=unbound
 DESC="recursive DNS server"
@@ -121,7 +122,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