'Restart if daemonized, else exit.'

def handle_SIGHUP(self):

    if self._is_daemonized():
        self.bus.log('SIGHUP    caught    while    daemonized.    Restarting.')
        self.bus.restart()
    else:
        self.bus.log('SIGHUP    caught    but    not    daemonized.    Exiting.')
        self.bus.exit()
