run script
fix server restart
This commit is contained in:
parent
9b7dab692b
commit
99db626225
4 changed files with 13 additions and 1 deletions
6
run.sh
Normal file
6
run.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue