]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- fix status checking /output of pg_ctl status command has changed/
authorwrobell <wrobell@pld-linux.org>
Wed, 12 Nov 2003 21:10:01 +0000 (21:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.57

postgresql.init

index bd51a24a8bef79a86251cb97219d3b5c3a91b196..c37936607952633056f0b8312aa2343ada3aa42b 100644 (file)
@@ -71,11 +71,11 @@ pgstatus() {
        PG_PID="unknown"
        status=`/usr/bin/pg_ctl -D $1 status`
 
-       if echo "$status" | grep -q 'pg_ctl: postmaster or postgres is not running'; then
+       if echo "$status" | grep -q 'pg_ctl: postmaster or postgres not running'; then
                PG_STATUS="not running"
        elif echo "$status" | grep -q 'pg_ctl: postmaster is running'; then
                PG_STATUS="running"
-               PG_PID=`echo "$status" | sed 's/^pg_ctl:.*pid: \([0-9]\+\).*/\1/' | head -1`
+               PG_PID=`echo "$status" | sed 's/^pg_ctl:.*PID: \([0-9]\+\).*/\1/' | head -1`
        fi
 }
 
This page took 0.254132 seconds and 4 git commands to generate.