class AgentService(service.MultiService): """Manage all services related to the ooniprobe-agent daemon.""" def __init__(self, web_ui_port): """ If the advanced->disabled_webui is set to true then we will not start the WebUI. """ service.MultiService.__init__(self) director = Director() self.scheduler_service = SchedulerService(director) self.scheduler_service.setServiceParent(self) if not config.advanced.disabled_webui: self.web_ui_service = WebUIService(director, self.scheduler_service, web_ui_port) self.web_ui_service.setServiceParent(self) def startService(self): service.MultiService.startService(self) def stopService(self): service.MultiService.stopService(self)
def __init__(self, web_ui_port): """ If the advanced->disabled_webui is set to true then we will not start the WebUI. """ service.MultiService.__init__(self) director = Director() self.scheduler_service = SchedulerService(director) self.scheduler_service.setServiceParent(self) if not config.advanced.disabled_webui: self.web_ui_service = WebUIService(director, self.scheduler_service, web_ui_port) self.web_ui_service.setServiceParent(self)
class AgentService(service.MultiService): """Manage all services related to the ooniprobe-agent daemon.""" def __init__(self, web_ui_port): """ If the advanced->disabled_webui is set to true then we will not start the WebUI. """ service.MultiService.__init__(self) director = Director() self.scheduler_service = SchedulerService(director) self.scheduler_service.setServiceParent(self) if not config.advanced.disabled_webui: self.web_ui_service = WebUIService(director, self.scheduler_service, web_ui_port) self.web_ui_service.setServiceParent(self) def startService(self): service.MultiService.startService(self) def stopService(self): service.MultiService.stopService(self)
def __init__(self, web_ui_port): """ If the advanced->disabled_webui is set to true then we will not start the WebUI. """ service.MultiService.__init__(self) director = Director() self.scheduler_service = SchedulerService(director) self.scheduler_service.setServiceParent(self) if not config.advanced.disabled_webui: self.web_ui_service = WebUIService(director, self.scheduler_service, web_ui_port) self.web_ui_service.setServiceParent(self)