mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
Update index.py
This commit is contained in:
@@ -135,10 +135,6 @@ def returnCfg():
|
||||
return data
|
||||
|
||||
|
||||
def status():
|
||||
return 'stop'
|
||||
|
||||
|
||||
def __release_port(port):
|
||||
from collections import namedtuple
|
||||
try:
|
||||
@@ -249,6 +245,13 @@ def pgOp(method):
|
||||
|
||||
return data[1]
|
||||
|
||||
def status():
|
||||
sock = '/tmp/pgadmin4.sock'
|
||||
if os.path.exists(sock):
|
||||
return 'start'
|
||||
return 'stop'
|
||||
|
||||
|
||||
def start():
|
||||
initCfg()
|
||||
openPort()
|
||||
|
||||
Reference in New Issue
Block a user