Commit 47c396ca authored by guus's avatar guus

Checks if Openfire is already running (OF-67)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11479 b35dd754-fafc-0310-a699-88a17e54d16e
parent 68bd5f05
...@@ -107,6 +107,14 @@ start() { ...@@ -107,6 +107,14 @@ start() {
OLD_PWD=`pwd` OLD_PWD=`pwd`
cd $OPENFIRE_LOGDIR cd $OPENFIRE_LOGDIR
# Check if the server is already running. We look only for the pid file
pid=`cat $OPENFIRE_PIDFILE 2>&1`
if [ "$?" = "0" ]; then
echo "Openfire is already running"
RETVAL=1
return
fi
# Start daemons. # Start daemons.
echo -n "Starting openfire: " echo -n "Starting openfire: "
......
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