]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- fix: pg_ctl exits with 3 if postgres is not running
authormis <mistoo@gmail.com>
Sat, 18 Feb 2017 13:48:01 +0000 (14:48 +0100)
committermis <mistoo@gmail.com>
Sat, 18 Feb 2017 13:48:01 +0000 (14:48 +0100)
postgresql.init

index d3476e2184c719aaebcb73ea5d9deb399ff8fb38..647f2ec4328af6cab69cf80b305ae8a7c25863b1 100644 (file)
@@ -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"
This page took 0.033157 seconds and 4 git commands to generate.