def sigterm_handler(signum, frame):
    logger.info('Got SIGTERM signal. Exiting...')
    exit_process()
A :mod:`signal` handler which will exit the program on signal.
dataset/ETHPy150Open mopidy/mopidy/mopidy/internal/process.py/sigterm_handler