aboutsummaryrefslogtreecommitdiffstats
path: root/postgresql-prep/src/stage/opt/app/postgresql-prep/bin/iDNS-responder.py
diff options
context:
space:
mode:
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)