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