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:
parent
a518e97491
commit
5a6d8a65c3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue