def run(): '''Start the capture agent. ''' # If we are a backup CA, we don't want to actually upload anything. So # let's just quit here and do not run the ingest service at all. if config('agent')['backup_mode']: return configure_service('ingest') configure_service('capture.admin') control_loop()
def run(): '''Start the capture agent. ''' signal.signal(signal.SIGTERM, sigterm_handler) configure_service('capture.admin') control_loop()
def run(): '''Start the capture agent. ''' configure_service('scheduler') control_loop()
def run(): '''Start the capture agent. ''' configure_service('scheduler') control_loop()
def test_configure_service(self): utils.terminate(False) utils.get_service = lambda x: 'x' utils.configure_service('x') assert config.config()['service-x'] == 'x'
def run(): '''Start the capture agent. ''' configure_service('ingest') configure_service('capture.admin') control_loop()
def run(): '''Start the capture agent. ''' signal.signal(signal.SIGTERM, sigterm_handler) configure_service('capture.admin') control_loop()
def test_configure_service(self): utils.get_service = lambda x: 'x' utils.configure_service('x') assert config.config()['service-x'] == 'x'