mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +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
|
||||
echo "$prog is running"
|
||||
else
|
||||
RETVAL=3
|
||||
echo "$prog is stopped"
|
||||
fi
|
||||
exit 0
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
|
||||
Reference in New Issue
Block a user