X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Funbound%2Ffiles%2Funbound.init;h=cb989a9506a704ce9788c1d6b410337da4016161;hb=8e8622ce0ddfd9b63cad816ef6327b49ae2e5df8;hp=78f9c2f7556e14bc19dcdf63e07766d61d390a4d;hpb=e2a55d636be8a855459a64f90e37511ba3f11ac5;p=mirror%2Fdsa-puppet.git diff --git a/modules/unbound/files/unbound.init b/modules/unbound/files/unbound.init index 78f9c2f75..cb989a950 100755 --- a/modules/unbound/files/unbound.init +++ b/modules/unbound/files/unbound.init @@ -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