From 2fd7e6995abd42533c5b696c0784f87a70a83743 Mon Sep 17 00:00:00 2001 From: Petr Kubanek Date: Tue, 11 Jun 2024 17:32:02 +0200 Subject: [PATCH] startas replaced with exec - fix pid check --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init b/init index bdf6eb7..f2b7644 100755 --- a/init +++ b/init @@ -48,7 +48,7 @@ startdaemon(){ done logger -t VMS_start -p user.info "Starting with IP $LSST_DDS_IP" echo -n "Starting TS VMS $1:" - start-stop-daemon --start --oknodo --pidfile ${PIDFILE}_$1.pid --startas $DAEMON -- -p ${PIDFILE}_$1.pid -u vms:vms $1 + start-stop-daemon --start --oknodo --pidfile ${PIDFILE}_$1.pid --exec $DAEMON -- -p ${PIDFILE}_$1.pid -u vms:vms $1 echo "done" } stopdaemon(){