Update index.py

This commit is contained in:
midoks
2022-06-12 16:42:45 +08:00
parent 6f20b46acd
commit 88c1c95899
+1 -1
View File
@@ -380,7 +380,7 @@ def my8cmd(version, method):
if method == "stop":
mw.execShell(cmd)
mw.execShell(
"ps -ef|grep mysql|grep -v grep|awk '{print $2}'|xargs kill")
"ps -ef|grep mysql|grep -v grep|grep -v /www/server|awk '{print $2}'|xargs kill")
return "ok"
sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True,
bufsize=4096, stderr=subprocess.PIPE)