From 977fc07c393a742fa0fc2abe920e2a3c703aee15 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 6 Dec 2014 16:07:44 +0000 Subject: [PATCH] Pass --name and --user during daemon start so that existing processes can be correctly identified. --- debian/dump1090-mr.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/dump1090-mr.init b/debian/dump1090-mr.init index cf03a31..96f0ae4 100644 --- a/debian/dump1090-mr.init +++ b/debian/dump1090-mr.init @@ -112,9 +112,9 @@ do_start() return 2 fi - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --user $DUMP1090_USER --exec $DAEMON --test > /dev/null \ || return 1 - start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $DUMP1090_USER --make-pidfile --background --no-close --exec $DAEMON -- \ + start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME --user $DUMP1090_USER --chuid $DUMP1090_USER --make-pidfile --background --no-close --exec $DAEMON -- \ $ARGS >>$LOGFILE 2>&1 \ || return 2 sleep 1