From 3d82f8b74bf291b29367aba34f8c43d970ba9493 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 12 Jun 2022 17:19:56 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index c0adbe100..e147517d8 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -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)