(self)
Start all services.
Start all services.
Start all services .
def start(self):
        """Start all services."""
        atexit.register(self._clean_exit)

        self.state = states.STARTING
        self.log('Bus STARTING')
        try:
            self.publish('start')
            self.state = states.STARTED
            self.log('Bus STARTED')
        except (KeyboardInterrupt, SystemExit):
            raise
        except Exception:
            self.log('Shutting down due to error in start listener:',
                     level=40, traceback=True)
            e_info = sys.exc_info()[1]
            try:
                self.exit()
            except Exception:
                # Any stop/exit errors will be logged inside publish().
                pass
            # Re-raise the original error
            raise e_info
def start ( self ) : atexit . register ( self . _clean_exit ) self . state = states . STARTING self . log ( 'Bus STARTING' ) try : self . publish ( 'start' ) self . state = states . STARTED self . log ( 'Bus STARTED' ) except ( KeyboardInterrupt , SystemExit ) : raise except Exception : self . log ( 'Shutting down due to error in start listener:' , level = 40 , traceback = True ) e_info = sys . exc_info ( ) [ 1 ] try : self . exit ( ) except Exception : # Any stop/exit errors will be logged inside publish(). pass # Re-raise the original error raise e_info