From: Ian Jackson Date: Thu, 30 Dec 2021 15:09:47 +0000 (+0000) Subject: init script: make "restart" work if secnet is not running. X-Git-Tag: v0.6.2~1 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=233054564bd43b5243b75df72d414989da33593f;p=secnet.git init script: make "restart" work if secnet is not running. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 792d575..a144b14 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. diff --git a/debian/init b/debian/init index 646777c..dc3ee70 100644 --- a/debian/init +++ b/debian/init @@ -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