From 3c02d9e3260fab8bb0220d310f18206b9f15bf3a Mon Sep 17 00:00:00 2001 From: Hannes Feldt <feldt@astron.nl> Date: Tue, 17 Dec 2024 16:12:51 +0100 Subject: [PATCH] test --- bin/hwtr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/hwtr b/bin/hwtr index 3da8ed3..f585d01 100755 --- a/bin/hwtr +++ b/bin/hwtr @@ -18,7 +18,7 @@ DESC="hwtr" SERVICE=$(basename -- "$0") NAME="${SERVICE##*.}" DAEMON=/usr/bin/pypcc-hwtr -PIDFILE=/var/run/$NAME.pid +PIDFILE=/var/run/$SERVICE.pid . /etc/init.d/functions || exit 1 @@ -33,7 +33,7 @@ PIDFILE=/var/run/$NAME.pid # do_start() { echo "Starting $DESC ..." - start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- -p $HWTR_PORT -c $HWTR_CONFIG $HWTR_ARGS + start-stop-daemon -S -b -p $PIDFILE -m -x $DAEMON -- -p $HWTR_PORT -c $HWTR_CONFIG $HWTR_ARGS } # @@ -41,7 +41,7 @@ do_start() { # do_stop() { echo "Stopping $DESC" - start-stop-daemon --stop --pidfile $PIDFILE + start-stop-daemon -K -p $PIDFILE } case "$1" in -- GitLab