mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -168,11 +168,6 @@ def initDreplace(version=''):
|
||||
|
||||
|
||||
def status(version=''):
|
||||
data = mw.execShell(
|
||||
"ps -ef|grep mysqld |grep -v grep | grep -v python | awk '{print $2}'")
|
||||
if data[0] == '':
|
||||
return 'stop'
|
||||
|
||||
pid = getServerDir() + '/data/mysql.pid'
|
||||
if not os.path.exists(pid):
|
||||
return 'stop'
|
||||
|
||||
Reference in New Issue
Block a user