postgresqls:Fixed server running issue and file paths

This commit is contained in:
2023-07-21 19:20:33 +03:00
parent fea8e1366f
commit 1c6ee4122b
3 changed files with 83 additions and 45 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ def check_postgresql():
fail(MSG_ERR_PGSQLNOTINST)
PIDFILE = "%s/postmaster.pid" % config.get("PGDATA", "/var/lib/postgresql/data")
#pg_ctl
@synchronized
def start():
check_postgresql()
@@ -42,4 +42,4 @@ def reload():
donotify=True)
def status():
return isServiceRunning(PIDFILE)
return isServiceRunning(PIDFILE)