示例#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
 def test_configure_service(self):
     utils.get_service = lambda x: 'x'
     utils.configure_service('x')
     assert config.config()['service-x'] == 'x'