This commit is contained in:
wangwei01 2019-12-03 13:50:39 +08:00
parent 8a87950eb0
commit 6abe1f7a53
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
echo 'success'

9
restart.sh Normal file → Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
ps -ef|grep python|grep game2003_rankserver|grep -v grep
if [ $? -eq 0 ]; then
ps -ef|grep python|grep game2003_rankserver|grep -v grep|awk '{print $2}'|xargs kill -9
fi
cd bin
nohup python3 game2003_rankserver.py >> game2003_rankserver.out 2>&1 &