Commit f1303958 authored by guus's avatar guus

Make exit codes more compliant with LSB (OF-433)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12075 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6a61e634
...@@ -162,7 +162,7 @@ status() { ...@@ -162,7 +162,7 @@ status() {
pid=`cat $OPENFIRE_PIDFILE 2>&1` pid=`cat $OPENFIRE_PIDFILE 2>&1`
if [ "$?" = "1" ]; then if [ "$?" = "1" ]; then
echo "openfire is not running" echo "openfire is not running"
RETVAL=0 RETVAL=3
else else
ps -p $pid > /dev/null 2>&1 ps -p $pid > /dev/null 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
...@@ -170,7 +170,7 @@ status() { ...@@ -170,7 +170,7 @@ status() {
RETVAL=0 RETVAL=0
else else
echo "openfire is not running" echo "openfire is not running"
RETVAL=0 RETVAL=1
fi fi
fi fi
} }
......
...@@ -168,7 +168,7 @@ status() { ...@@ -168,7 +168,7 @@ status() {
pid=`cat $OPENFIRE_PIDFILE 2>&1` pid=`cat $OPENFIRE_PIDFILE 2>&1`
if [ "$?" = "1" ]; then if [ "$?" = "1" ]; then
echo "openfire is not running" echo "openfire is not running"
RETVAL=0 RETVAL=3
else else
ps -p $pid > /dev/null 2>&1 ps -p $pid > /dev/null 2>&1
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
...@@ -176,7 +176,7 @@ status() { ...@@ -176,7 +176,7 @@ status() {
RETVAL=0 RETVAL=0
else else
echo "openfire is not running" echo "openfire is not running"
RETVAL=0 RETVAL=1
fi fi
fi 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