mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 19:49:20 +00:00
Shutdown on SIGHUP signal (when terminal is closed)
This commit is contained in:
parent
3ba2145cc9
commit
f4f64423a4
1 changed files with 1 additions and 0 deletions
|
@ -436,6 +436,7 @@ def runClient(fp, data_dir, chain, start_only_coins):
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, signal_handler)
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
signal.signal(signal.SIGTERM, signal_handler)
|
signal.signal(signal.SIGTERM, signal_handler)
|
||||||
|
signal.signal(signal.SIGHUP, signal_handler)
|
||||||
|
|
||||||
if len(start_only_coins) > 0:
|
if len(start_only_coins) > 0:
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|
Loading…
Reference in a new issue