Commit a038f039 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Fixes for redhat based system init script.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@9755 b35dd754-fafc-0310-a699-88a17e54d16e
parent 52195aa6
......@@ -110,11 +110,13 @@ start() {
# Start daemons.
echo -n "Starting openfire: "
su -s /bin/sh -c "$OPENFIRE_RUN_CMD" $OPENFIRE_USER > nohup.out 2>&1 &
rm -f nohup.out
su -s /bin/sh -c "nohup $OPENFIRE_RUN_CMD > $OPENFIRE_LOGDIR/nohup.out 2>&1 &" $OPENFIRE_USER
RETVAL=$?
PID=$!
PID=`ps ax --width=1000 | grep openfire | grep startup.jar | awk '{print $1}'`
echo $PID
if [ $RETVAL -eq 0 -a ! -z "$OPENFIRE_PIDFILE" ]; then
if [ $RETVAL -eq 0 -a ! -z "$PID" -a ! -z "$OPENFIRE_PIDFILE" ]; then
echo $PID > $OPENFIRE_PIDFILE
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment