React to SIGINT signal

ODCS sends SIGINT signal.

JIRA: RHELCMP-3687
Signed-off-by: Haibo Lin <hlin@redhat.com>
(cherry picked from commit f470599f6c)
This commit is contained in:
Haibo Lin 2021-01-11 09:58:26 +08:00 committed by oshyshatskyi
parent ac601ab8ea
commit f2fd10b0ab

View File

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