diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 9ea1bf061..6d58096b4 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -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)