aboutsummaryrefslogtreecommitdiffstats
path: root/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2017-05-15 03:16:16 +0000
committerGerrit Code Review <gerrit@onap.org>2017-05-15 03:16:16 +0000
commit7c0f3ce19a502317e15f381b15e06930a1952dbc (patch)
treed09a32691ec014f5571ab6fa2acaf9a949d31348 /postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py
parent7d41ad61e2a3b17505123d1aa7b56fb14d3f143d (diff)
parent844a29c7570aa10775b34fe28dcc022de65fed4c (diff)
Merge "[DCAE-20] fix problem with config change"
Diffstat (limited to 'postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py')
-rwxr-xr-xpostgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py9
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)