handle sigterm to exit gracefully. this is a one-liner for #3620.
This commit is contained in:
@@ -75,6 +75,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
sys.excepthook = handle_exception
|
sys.excepthook = handle_exception
|
||||||
|
|
||||||
|
signal.signal(signal.SIGTERM, exit)
|
||||||
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
cli = pisicli.PisiCLI()
|
cli = pisicli.PisiCLI()
|
||||||
cli.run_command()
|
cli.run_command()
|
||||||
|
|||||||
Reference in New Issue
Block a user