1
This commit is contained in:
parent
3a0b8dfb05
commit
1990d23614
@ -34,7 +34,7 @@ def stop(instance_id, node_id):
|
|||||||
for pid in pids:
|
for pid in pids:
|
||||||
exepath = getExePath(pid)
|
exepath = getExePath(pid)
|
||||||
cmdline = getExeCmdLine(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))
|
os.popen('kill -9 %d' % int(pid))
|
||||||
|
|
||||||
def listServer():
|
def listServer():
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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 &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user