]> git.pld-linux.org Git - packages/postgresql.git/blobdiff - postgresql.init
- up to 10.3
[packages/postgresql.git] / postgresql.init
index 9fc8579af280f1927206d8b1a2a152d0d598280e..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"
@@ -168,8 +168,6 @@ stop() {
 }
 
 
-upstart_controlled --except status init
-
 RETVAL=0
 # See how we were called.
 # Every action is performed for all given (all configured by default)
This page took 0.025599 seconds and 4 git commands to generate.