Пример #1
0
def main(main_cfg):
    log_config, log_path = main_cfg['log_config'], main_cfg['log_path']
    verify_exists(log_config)
    log = setup_logger(log_config, log_path)
    setup_global(log)
    for instance in autoscan_instances(main_cfg):
        print("Launching instance: %s" % str(instance))
        #MM2(instance).start()
    print("Launched all instances")
Пример #2
0
def main(main_cfg):
    log_config, log_path = main_cfg['log_config'], main_cfg['log_path']
    verify_exists(log_config)
    log = setup_logger(log_config, log_path)
    setup_global(log)
    for instance in autoscan_instances(main_cfg):
        print("Launching instance: %s" % str(instance))
        #MM2(instance).start()
    print("Launched all instances")
Пример #3
0
def main(global_config, log_config):
    """ function to run hosted install """
    mm_config = MMConfig(global_config)
    log = setup_logger( log_config, mm_config['media-monitor']['logpath'] )
    setup_global(log)
    launch_instance('hosted_install', '/', global_config)
Пример #4
0
def main(global_config, api_client_config, log_config):
    """ function to run hosted install """
    mm_config = MMConfig(global_config)
    log = setup_logger(log_config, mm_config['logpath'])
    setup_global(log)
    launch_instance('hosted_install', '/', global_config, api_client_config)