]> TLD Linux GIT Repositories - packages/postgresql.git/blobdiff - postgresql.init
- merged 10.2 from PLD
[packages/postgresql.git] / 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"