init script: make status call return proper return code

This commit is contained in:
Nathan Van Overloop
2014-06-06 15:47:33 +02:00
parent 73d352b2a2
commit d8bba0de03

View File

@@ -78,9 +78,10 @@ status() {
if [ -f "$LOCKFILE" ]; then if [ -f "$LOCKFILE" ]; then
echo "$prog is running" echo "$prog is running"
else else
RETVAL=3
echo "$prog is stopped" echo "$prog is stopped"
fi fi
exit 0 return $RETVAL
} }
# See how we were called. # See how we were called.