Exemplo n.º 1
0
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()
Exemplo n.º 2
0
def run():
    '''Start the capture agent.
    '''
    signal.signal(signal.SIGTERM, sigterm_handler)
    configure_service('capture.admin')
    control_loop()
Exemplo n.º 3
0
def run():
    '''Start the capture agent.
    '''
    configure_service('scheduler')
    control_loop()
Exemplo n.º 4
0
def run():
    '''Start the capture agent.
    '''
    configure_service('scheduler')
    control_loop()
Exemplo n.º 5
0
 def test_configure_service(self):
     utils.terminate(False)
     utils.get_service = lambda x: 'x'
     utils.configure_service('x')
     assert config.config()['service-x'] == 'x'
Exemplo n.º 6
0
def run():
    '''Start the capture agent.
    '''
    configure_service('ingest')
    configure_service('capture.admin')
    control_loop()
Exemplo n.º 7
0
def run():
    '''Start the capture agent.
    '''
    signal.signal(signal.SIGTERM, sigterm_handler)
    configure_service('capture.admin')
    control_loop()
Exemplo n.º 8
0
 def test_configure_service(self):
     utils.get_service = lambda x: 'x'
     utils.configure_service('x')
     assert config.config()['service-x'] == 'x'