def handle_term(signum, frame):
    global KILLED
    logging.info('Caught signal %s in %s', signum, frame)
    KILLED = True
    if not BUSY:
        sys.exit(0)
Handle sig term.
dataset/ETHPy150Open openstack/compass-core/compass/utils/daemonize.py/handle_term