[packages/postgresql] - fix: pg_ctl exits with 3 if postgres is not running
mis
mis at pld-linux.org
Sat Feb 18 14:48:27 CET 2017
commit 206d9ac703f82ccef75d5f5944badcb6be3e5ca2
Author: mis <mistoo at gmail.com>
Date: Sat Feb 18 14:48:01 2017 +0100
- fix: pg_ctl exits with 3 if postgres is not running
postgresql.init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/postgresql.init b/postgresql.init
index d3476e2..647f2ec 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -76,7 +76,7 @@ pgstatus() {
output=$(LC_ALL=C TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status")
status=$?
- if [ $status -eq 1 ]; then
+ if [ $status -eq 3 ]; then
PG_STATUS="not running"
elif [ $status -eq 0 ]; then
PG_STATUS="running"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/206d9ac703f82ccef75d5f5944badcb6be3e5ca2
More information about the pld-cvs-commit
mailing list