Improve action/start and start-stop-daemon usage

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2023-02-23 13:49:49 -06:00
parent 3ac7af0d2f
commit 22276201f1
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 3 additions and 2 deletions

View File

@ -464,13 +464,14 @@ case "$ACTION" in
CH_USER="--chuid $JETTY_USER" CH_USER="--chuid $JETTY_USER"
fi fi
start-stop-daemon --start $CH_USER \ echo ${RUN_CMD[@]} start-log-file="$JETTY_START_LOG" | xargs start-stop-daemon \
--start $CH_USER \
--pidfile "$JETTY_PID" \ --pidfile "$JETTY_PID" \
--chdir "$JETTY_BASE" \ --chdir "$JETTY_BASE" \
--background \ --background \
--make-pidfile \ --make-pidfile \
--startas "$JAVA" \ --startas "$JAVA" \
-- ${RUN_ARGS[@]} start-log-file="$JETTY_START_LOG" --
else else