mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 21:11:57 +00:00
Add signal handling to tfw_server.py
This commit is contained in:
parent
f2b6123d41
commit
42f959878f
@ -2,7 +2,7 @@ from sys import stderr
|
||||
|
||||
from tornado.ioloop import IOLoop
|
||||
|
||||
from tfw.main import TFWServer
|
||||
from tfw.main import TFWServer, setup_signal_handlers
|
||||
from tfw.config import TFWENV
|
||||
from tfw.logging import Log, Logger, LogFormatter, VerboseLogFormatter
|
||||
|
||||
@ -13,4 +13,6 @@ if __name__ == '__main__':
|
||||
Log(TFWENV.LOGFILE, VerboseLogFormatter())
|
||||
]).start()
|
||||
TFWServer().listen()
|
||||
|
||||
setup_signal_handlers()
|
||||
IOLoop.instance().start()
|
||||
|
Loading…
Reference in New Issue
Block a user