1
This commit is contained in:
parent
12e3cf25c4
commit
8772133217
10
restart.sh
Normal file → Executable file
10
restart.sh
Normal file → Executable file
@ -1 +1,9 @@
|
||||
nohup python bin/game2001_rankserver.py >> bin/game2001_rankserver.out 2>&1 &
|
||||
#!/bin/bash
|
||||
|
||||
ps -ef|grep python|grep game2001_rankserver|grep -v grep
|
||||
if [ $? -eq 0 ]; then
|
||||
ps -ef|grep python|grep game2001_rankserver|grep -v grep|awk '{print $2}'|xargs kill -9
|
||||
fi
|
||||
|
||||
cd bin
|
||||
nohup python3 game2001_rankserver.py >> game2001_rankserver.out 2>&1 &
|
||||
|
Loading…
x
Reference in New Issue
Block a user