X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=debian%2Finit;h=dc3ee70f0af5c4013079491ab7123aceeeefaa40;hb=HEAD;hp=8df268bee25265bb98f5a2977ab1170f22cf6751;hpb=c2fe245748bf2110bc6acf823f266715b08707db;p=secnet.git diff --git a/debian/init b/debian/init index 8df268b..dc3ee70 100644 --- a/debian/init +++ b/debian/init @@ -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 . -# Modified for Debian GNU/Linux -# by Ian Murdock . -# -# 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