Cleaning up CH_USER

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1968 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Joakim Erdfelt 2010-06-09 23:53:31 +00:00
parent a518e97491
commit 5a6d8a65c3
1 changed files with 6 additions and 3 deletions

View File

@ -464,9 +464,12 @@ case "$ACTION" in
if type start-stop-daemon > /dev/null 2>&1
then
[ -z "$JETTY_USER" ] && JETTY_USER=$USER
(( UID == 0 )) && CH_USER=-c$JETTY_USER
if start-stop-daemon -S -p"$JETTY_PID" "$CH_USER" -d"$JETTY_HOME" -b -m -a "$JAVA" -- "${RUN_ARGS[@]} --daemon"
unset CH_USER
if [ -n "$JETTY_USER" ]
then
CH_USER="-c$JETTY_USER"
fi
if start-stop-daemon -S -p"$JETTY_PID" $CH_USER -d"$JETTY_HOME" -b -m -a "$JAVA" -- "${RUN_ARGS[@]} --daemon"
then
sleep 1
if running "$JETTY_PID"