(self)
Will be called just before entering main loop.

        In case of daemon, if will be called in same process as work(),
        unlike __init__().
Will be called just before entering main loop.
Will be called just before entering main loop .
def startup(self):
        """Will be called just before entering main loop.

        In case of daemon, if will be called in same process as work(),
        unlike __init__().
        """
        self.started = time.time()

        # set signals
        if hasattr(signal, 'SIGHUP'):
            signal.signal(signal.SIGHUP, self.hook_sighup)
        if hasattr(signal, 'SIGINT'):
            signal.signal(signal.SIGINT, self.hook_sigint)
def startup ( self ) : self . started = time . time ( ) # set signals if hasattr ( signal , 'SIGHUP' ) : signal . signal ( signal . SIGHUP , self . hook_sighup ) if hasattr ( signal , 'SIGINT' ) : signal . signal ( signal . SIGINT , self . hook_sigint )