mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
init script: make status call return proper return code
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user