Merge pull request #709 from JonathanCoe/master
Catch the standard Unix SIGTERM kill signal and do a graceful shutdown
This commit is contained in:
commit
6e9f6d54d2
|
@ -172,6 +172,7 @@ class Main:
|
||||||
curses = True
|
curses = True
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, helper_generic.signal_handler)
|
signal.signal(signal.SIGINT, helper_generic.signal_handler)
|
||||||
|
signal.signal(signal.SIGTERM, helper_generic.signal_handler)
|
||||||
# signal.signal(signal.SIGINT, signal.SIG_DFL)
|
# signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
|
|
||||||
helper_bootstrap.knownNodes()
|
helper_bootstrap.knownNodes()
|
||||||
|
|
Reference in New Issue
Block a user