Update index.py

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