diff options
author | Tony Hansen <tony@att.com> | 2017-05-15 03:08:24 +0000 |
---|---|---|
committer | Tony Hansen <tony@att.com> | 2017-05-15 03:08:46 +0000 |
commit | 844a29c7570aa10775b34fe28dcc022de65fed4c (patch) | |
tree | 9cb0a2b41864ac2df388da93d7e7d07d9606cd2b /postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py | |
parent | 48feaffcb16e1fd5eb3ce453b99797de1bd15d7a (diff) |
[DCAE-20] fix problem with config change
Change-Id: Icc27ab79997b2aed85a061fc7f4680367896d4b4
Signed-off-by: Tony Hansen <tony@att.com>
Diffstat (limited to 'postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py')
-rwxr-xr-x | postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py b/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py index 14c16b3..baaeb8b 100755 --- a/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py +++ b/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py @@ -258,12 +258,15 @@ class MyHandler(http.server.BaseHTTPRequestHandler): Then call ps -fu postgres and make sure we're not waiting on a master: postgres 20815 20812 0 15:52 ? 00:00:00 postgres: startup process waiting for 000000010000000000000001 """ - PGCTLPATH1 = "/usr/lib/postgresql/9.5/bin/pg_ctl" - PGCTLPATH2 = "/opt/app/postgresql-9.5.2/bin/pg_ctl" + PGCTLPATH1 = "/usr/lib/postgresql/9.6/bin/pg_ctl" + PGCTLPATH2 = "/usr/lib/postgresql/9.5/bin/pg_ctl" + PGCTLPATH3 = "/opt/app/postgresql-9.5.2/bin/pg_ctl" if isExe(PGCTLPATH1): statusLines = readPipe(PGCTLPATH1 + " status -D /dbroot/pgdata/main/") - else: + elif isExe(PGCTLPATH2): statusLines = readPipe(PGCTLPATH2 + " status -D /dbroot/pgdata/main/") + else: + statusLines = readPipe(PGCTLPATH3 + " status -D /dbroot/pgdata/main/") debugTrace("isServerUp(): statusLines = %s" % statusLines) psLines = readPipe("ps -fu postgres") debugTrace("isServerUp(): ps -fu postgres = %s" % psLines) |