Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix control from /etc/init.d/frontik

  • Loading branch information...
commit 9ba2ec4ed923fb04fd545a9a3d1fcea91f30a852 1 parent ec6606c
@katraev katraev authored
Showing with 4 additions and 1 deletion.
  1. +3 −1 tornado_util/server.py
  2. +1 −0  tornado_util/supervisor.py
View
4 tornado_util/server.py
@@ -36,6 +36,8 @@
import tornado.autoreload
from tornado.options import options
+tornado.options.define('stop_timeout', 3, int)
+
def bootstrap(config_file, default_port=8080):
'''
- объявить стандартные опции config, host, port, daemonize, autoreload
@@ -54,7 +56,7 @@ def bootstrap(config_file, default_port=8080):
tornado.options.define('daemonize', True, bool)
tornado.options.define('autoreload', True, bool)
- tornado.options.define('stop_timeout', 3, int)
+
tornado.options.parse_command_line()
if options.config:
View
1  tornado_util/supervisor.py
@@ -36,6 +36,7 @@
from functools import partial
import tornado.options
+import tornado_util.server
from tornado.options import options
tornado.options.define('port', 8000, int)
Please sign in to comment.
Something went wrong with that request. Please try again.