This commit is contained in:
aozhiwei 2019-06-12 11:14:16 +08:00
parent 3a0b8dfb05
commit 1990d23614
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def stop(instance_id, node_id):
for pid in pids:
exepath = getExePath(pid)
cmdline = getExeCmdLine(pid)
if cmdline == ("./gameserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id)):
if cmdline.find(("./gameserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id))) > -1:
os.popen('kill -9 %d' % int(pid))
def listServer():

View File

@ -1,3 +1,3 @@
#!/bin/bash
nohup ./gameserver -i $1 -n $2>> gameserver$2_$1.out 2>&1 &
nohup ./gameserver -i $1 -n $2 -f1,2,3,4,6>> gameserver$2_$1.out 2>&1 &