Followup-For: Bug #947771
Package: unbound
Version: 1.13.1-1


On Thu, 28 Jan 2021 02:19:05 +0800 Gedalya <geda...@gedalya.net> wrote:
--- unbound.init    2020-12-24 00:34:24.000000000 +0000
+++ /etc/init.d/unbound    2021-01-27 18:15:25.663526469 +0000
@@ -42,7 +42,7 @@
     stop)
         log_daemon_msg "Stopping $DESC" "$NAME"
-        if start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --name 
$NAME --retry 5; then
+        if start-stop-daemon --stop --quiet --oknodo --remove-pidfile 
--pidfile $PIDFILE --name $NAME --retry 5; then
             $HELPER resolvconf_stop
             $HELPER chroot_teardown
             log_end_msg 0
@@ -53,7 +53,7 @@
     restart|force-reload)
         log_daemon_msg "Restarting $DESC" "$NAME"
-        start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME 
--retry 5
+        start-stop-daemon --stop --quiet --remove-pidfile --pidfile $PIDFILE 
--name $NAME --retry 5
         $HELPER resolvconf_stop
         if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE 
--name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
             $HELPER chroot_setup




This works perfectly and should be accepted.

Reply via email to