예제 #1
0
파일: ingest.py 프로젝트: shaardie/pyCA
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()
예제 #2
0
def run():
    '''Start the capture agent.
    '''
    signal.signal(signal.SIGTERM, sigterm_handler)
    configure_service('capture.admin')
    control_loop()
예제 #3
0
파일: schedule.py 프로젝트: lkiesow/pyCA
def run():
    '''Start the capture agent.
    '''
    configure_service('scheduler')
    control_loop()
예제 #4
0
파일: schedule.py 프로젝트: shaardie/pyCA
def run():
    '''Start the capture agent.
    '''
    configure_service('scheduler')
    control_loop()
예제 #5
0
파일: test_utils.py 프로젝트: wederw/pyCA
 def test_configure_service(self):
     utils.terminate(False)
     utils.get_service = lambda x: 'x'
     utils.configure_service('x')
     assert config.config()['service-x'] == 'x'
예제 #6
0
파일: ingest.py 프로젝트: lkiesow/pyCA
def run():
    '''Start the capture agent.
    '''
    configure_service('ingest')
    configure_service('capture.admin')
    control_loop()
예제 #7
0
파일: capture.py 프로젝트: lkiesow/pyCA
def run():
    '''Start the capture agent.
    '''
    signal.signal(signal.SIGTERM, sigterm_handler)
    configure_service('capture.admin')
    control_loop()
예제 #8
0
파일: test_utils.py 프로젝트: lkiesow/pyCA
 def test_configure_service(self):
     utils.get_service = lambda x: 'x'
     utils.configure_service('x')
     assert config.config()['service-x'] == 'x'