Improve action/start and start-stop-daemon usage
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
3ac7af0d2f
commit
22276201f1
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue