This commit is contained in:
aozhiwei 2020-02-03 12:43:36 +08:00
parent 5f8254dfef
commit 6b9a0b7efa

View File

@ -33,7 +33,7 @@ def stop(instance_id, jar_name):
for pid in pids:
exepath = getExePath(pid)
cmdline = getExeCmdLine(pid)
if cmdline.find('-Dinstance_id="%s"' % instance_id) != -1:
if cmdline.find('-Dinstance_id=%d ' % instance_id) != -1:
os.popen('kill -9 %d' % int(pid))
def listServer(jar_name):