postgresqls:Fixed server running issue and file paths
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user