1
This commit is contained in:
parent
8a87950eb0
commit
6abe1f7a53
9
restart.sh
Normal file → Executable file
9
restart.sh
Normal file → Executable 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 &
|
Loading…
x
Reference in New Issue
Block a user