X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=postgresql.init;h=647f2ec4328af6cab69cf80b305ae8a7c25863b1;hb=c3f983ef904511a36297b731cc85dc3f80839712;hp=d3476e2184c719aaebcb73ea5d9deb399ff8fb38;hpb=c6f188b0a79186234a5126fda5b80a8946532d04;p=packages%2Fpostgresql.git 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"