React to SIGINT signal

ODCS sends SIGINT signal.

JIRA: RHELCMP-3687
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2021-01-11 09:58:26 +08:00
parent cda67776d9
commit f470599f6c

View File

@ -615,6 +615,7 @@ def sigterm_handler(signum, frame):
def cli_main(): def cli_main():
signal.signal(signal.SIGINT, sigterm_handler)
signal.signal(signal.SIGTERM, sigterm_handler) signal.signal(signal.SIGTERM, sigterm_handler)
try: try: