1
This commit is contained in:
parent
7223d385bc
commit
b48d41c1ce
@ -22,8 +22,9 @@ def getRuningProgramPids(progname):
|
||||
def monitor_gs():
|
||||
while True:
|
||||
pids = getRuningProgramPids('gameserver2001')
|
||||
if len(pids) >= 0:
|
||||
os.popen('nohup ./gameserver2001 >> gameserver2001.out 2>&1 &')
|
||||
if len(pids) <= 0:
|
||||
print('zzzz')
|
||||
os.popen('nohup ./gameserver2001 -i1 >> gameserver2001.out 2>&1 &')
|
||||
time.sleep(2)
|
||||
|
||||
monitor_gs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user