def on_start(self):
        """
        start the service
        """
        LOGGER.debug("natsd.Service.on_start")
        self.service = threading.Thread(target=self.run_event_loop, name=self.serviceQ + " service thread")
        self.service.start()
        while not self.is_started:
            time.sleep(0.01)
def on_start ( self ) : LOGGER . debug ( "natsd.Service.on_start" ) self . service = threading . Thread ( target = self . run_event_loop , name = self . serviceQ + " service thread" ) self . service . start ( ) while not self . is_started : time . sleep ( 0.01 )
start the service