From 835e32b1cc408abdfe48cf4182d1fc007d081ef6 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 21 Dec 2015 14:28:12 +0800 Subject: [PATCH] =?UTF-8?q?service.sh=20=E8=84=9A=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_websocket.py | 2 +- service.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run_websocket.py b/run_websocket.py index 810d71436..3349fda71 100755 --- a/run_websocket.py +++ b/run_websocket.py @@ -425,6 +425,6 @@ if __name__ == '__main__': server = tornado.httpserver.HTTPServer(app) server.bind(options.port, options.host) #server.listen(options.port) - server.start(num_processes=10) + server.start(num_processes=5) print "Run server on %s:%s" % (options.host, options.port) tornado.ioloop.IOLoop.instance().start() diff --git a/service.sh b/service.sh index c86d1c413..f25e1b67a 100755 --- a/service.sh +++ b/service.sh @@ -27,7 +27,7 @@ start() { else 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 & - sleep 2 + sleep 4 echo -n "$jump_start" nums=0