chiark / gitweb /
init script: make "restart" work if secnet is not running.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 Dec 2021 15:09:47 +0000 (15:09 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 Dec 2021 15:09:55 +0000 (15:09 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
debian/init

index 792d5756d46dc5d62f55414161e0dd4268cf07f6..a144b14c4d9c7559e6430ae3942d61c372be0a97 100644 (file)
@@ -20,6 +20,7 @@ secnet (0.6.2~alpha0) unstable; urgency=medium
       - We now provide debug symbols in the new Debian way.
       - The way the prerm stops secnet accords with modern practice.
   * init script: source /lib/lsb/init-functions.
+  * init script: make "restart" work if secnet is not running.
   * Expand Description.
   * debhelper compat: bump to 12 (stretch-backports).
   * debian/rules: Use dh_prep instead of deprecated dh_clean -k.
index 646777c83387fb6a8f2d587e3616fdb658220de9..dc3ee70f0af5c4013079491ab7123aceeeefaa40 100644 (file)
@@ -65,7 +65,7 @@ case "$1" in
        #
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
-               --exec $DAEMON
+               --oknodo --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON