From 42f959878f14727bf859d4d4ac0ee6b6f413f684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 24 Jul 2019 16:47:03 +0200 Subject: [PATCH] Add signal handling to tfw_server.py --- supervisor/tfw_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisor/tfw_server.py b/supervisor/tfw_server.py index f3ad4be..eccd753 100644 --- a/supervisor/tfw_server.py +++ b/supervisor/tfw_server.py @@ -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()