# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
+# pidfile: /run/unbound.pid
NAME=unbound
DESC="recursive DNS server"
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