Skip to content
Snippets Groups Projects
Commit b716b9aa authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

catch SIGTERM so that on_exit func is executed at this time too.

parent eaa447c1
No related branches found
No related tags found
No related merge requests found
......@@ -413,6 +413,7 @@ if __name__ == '__main__':
sys.exit(5)
# ^C exits the application normally to delete pid file
signal.signal(signal.SIGINT, sigint_cb)
signal.signal(signal.SIGTERM, sigint_cb)
log.info("Encodings: d:%s, fs:%s, p:%s", sys.getdefaultencoding(), \
sys.getfilesystemencoding(), locale.getpreferredencoding())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment