This commit is contained in:
wangwei01 2019-06-06 16:35:16 +08:00
parent 12e3cf25c4
commit 8772133217

10
restart.sh Normal file → Executable file
View 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 &