service.sh 脚本修改

pull/26/head
ibuler 2015-12-21 14:28:12 +08:00
parent a7e2592fa8
commit 835e32b1cc
2 changed files with 2 additions and 2 deletions

View File

@ -425,6 +425,6 @@ if __name__ == '__main__':
server = tornado.httpserver.HTTPServer(app) server = tornado.httpserver.HTTPServer(app)
server.bind(options.port, options.host) server.bind(options.port, options.host)
#server.listen(options.port) #server.listen(options.port)
server.start(num_processes=10) server.start(num_processes=5)
print "Run server on %s:%s" % (options.host, options.port) print "Run server on %s:%s" % (options.host, options.port)
tornado.ioloop.IOLoop.instance().start() tornado.ioloop.IOLoop.instance().start()

View File

@ -27,7 +27,7 @@ start() {
else else
daemon python $base_dir/manage.py runserver 0.0.0.0:80 &>> /tmp/jumpserver.log 2>&1 & daemon python $base_dir/manage.py runserver 0.0.0.0:80 &>> /tmp/jumpserver.log 2>&1 &
daemon python $base_dir/run_websocket.py &> /dev/null 2>&1 & daemon python $base_dir/run_websocket.py &> /dev/null 2>&1 &
sleep 2 sleep 4
echo -n "$jump_start" echo -n "$jump_start"
nums=0 nums=0