Catch SIGTERM, SIGINT, SIGHUP and SIGQUIT to properly shutdown the

server.
This commit is contained in:
grossmj committed 2013-12-06 17:52:16 -07:00
1 parent 2f23a092e3
commit 798f0367b9
3 files changed
+10 -1

No files matched your search

+1
View File
@@ -89,6 +89,7 @@ class IModule(multiprocessing.Process):
Starts the event loop
"""
log.info("{} module running with PID {}".format(self.name, self.pid))
self._setup()
try:
self._ioloop.start()