diff --git a/jetty-distribution/src/main/resources/bin/jetty.sh b/jetty-distribution/src/main/resources/bin/jetty.sh index 043d205177a..f00d8031ce1 100755 --- a/jetty-distribution/src/main/resources/bin/jetty.sh +++ b/jetty-distribution/src/main/resources/bin/jetty.sh @@ -457,11 +457,11 @@ case "$ACTION" in chown "$JETTY_USER" "$JETTY_PID" # FIXME: Broken solution: wordsplitting, pathname expansion, arbitrary command execution, etc. su - "$JETTY_USER" $SU_SHELL -c " - exec ${RUN_CMD[*]} start-log-file="$JETTY_LOGS/start.log" & + exec ${RUN_CMD[*]} start-log-file="$JETTY_LOGS/start.log" > /dev/null & disown \$! echo \$! > '$JETTY_PID'" else - "${RUN_CMD[@]}" & + "${RUN_CMD[@]}" > /dev/null & disown $! echo $! > "$JETTY_PID" fi