Pass --name and --user during daemon start so that existing processes can be correctly identified.
This commit is contained in:
parent
2e189633da
commit
977fc07c39
4
debian/dump1090-mr.init
vendored
4
debian/dump1090-mr.init
vendored
|
@ -112,9 +112,9 @@ do_start()
|
||||||
return 2
|
return 2
|
||||||
fi
|
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
|
|| 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 \
|
$ARGS >>$LOGFILE 2>&1 \
|
||||||
|| return 2
|
|| return 2
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue