def METHOD_NAME(self, signum, _):
    if signum == signal.SIGTERM:
        _logger.info("Caught SIGTERM. Exiting.")
        self._runqueue.terminate()
        sys.exit(0)
    elif signum == signal.SIGINT:
        _logger.info("Caught SIGINT. Exiting.")
        self._runqueue.terminate()
        sys.exit(0)
    elif signum == signal.SIGHUP:
        # reopen the logfile
        _logger.info("Caught SIGHUP. Reopening logfile...")
        logfile = open(self.conf.logfile, 'a')
        nav.daemon.redirect_std_fds(stdout=logfile, stderr=logfile)
        _logger.info("Reopened logfile: %s", self.conf.logfile)
    else:
        _logger.info("Caught %s. Resuming operation.", signum)