run script

fix server restart
This commit is contained in:
breakwa11 2015-06-15 12:00:00 +08:00
parent 9b7dab692b
commit 99db626225
4 changed files with 13 additions and 1 deletions

6
run.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
eval $(ps -ef | grep "[0-9] python server\\.py" | awk '{print "kill "$2}')
nohup python server.py >> ssserver.log 2>&1 &
tail -f ssserver.log