Update index.py

pull/109/head
midoks 3 years ago
parent 4477321460
commit 3d82f8b74b
  1. 2
      plugins/mysql/index.py

@ -383,7 +383,7 @@ def my8cmd(version, method):
if method == "stop": if method == "stop":
mw.execShell(cmd) mw.execShell(cmd)
mw.execShell( 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" return "ok"
sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True,
bufsize=4096, stderr=subprocess.PIPE) bufsize=4096, stderr=subprocess.PIPE)

Loading…
Cancel
Save