This commit is contained in:
Mr Chen
2024-05-12 10:58:12 +08:00
parent 00269662bf
commit 7952570b45
2 changed files with 7 additions and 5 deletions
+4 -4
View File
@@ -119,16 +119,16 @@ def getPidFile():
return tmp.groups()[0].strip()
def status():
pid_file = getPidFile()
if not os.path.exists(pid_file):
return 'stop'
# pid_file = getPidFile()
# if not os.path.exists(pid_file):
# return 'stop'
# data = mw.execShell(
# "ps aux|grep redis |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'")
# if data[0] == '':
# return 'stop'
return 'start'
return 'stop'
def contentReplace(content):
service_path = mw.getServerDir()