insert a reload step

main thread run 'thread_db' directly
insert a 'ulimit' command before run the server
This commit is contained in:
breakwa11 2015-10-10 19:47:50 +08:00
parent 36dc8f9463
commit c73127d858
5 changed files with 21 additions and 10 deletions

5
run.sh
View file

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