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
committed by Jaime Casanova
parent 2676adcaed
commit bba167db9e

View File

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