chiark / gitweb /
changelog: start 0.6.8
[secnet.git] / debian / init
index 8df268bee25265bb98f5a2977ab1170f22cf6751..dc3ee70f0af5c4013079491ab7123aceeeefaa40 100644 (file)
@@ -1,15 +1,10 @@
 #! /bin/sh
 # /etc/init.d/secnet
 #
-# skeleton     example file to build /etc/init.d/ scripts.
-#              This file should be used to construct scripts for /etc/init.d.
-#
-#              Written by Miquel van Smoorenburg <miquels@cistron.nl>.
-#              Modified for Debian GNU/Linux
-#              by Ian Murdock <imurdock@gnu.ai.mit.edu>.
-#
-# Version:     @(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
-#
+# This file is part of secnet.
+# See LICENCE and CREDITS for full list of copyright holders.
+# SPDX-License-Identifier: GPL-3.0-or-later
+# There is NO WARRANTY.
 
 ### BEGIN INIT INFO
 # Provides:          secnet
@@ -29,6 +24,9 @@ NAME=secnet
 DESC="VPN server"
 
 test -f $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
 test -f /etc/secnet/secnet.conf || exit 0
 test -f /etc/default/secnet && . /etc/default/secnet
 
@@ -67,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