示例#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
文件: baby.py 项目: AtomLaw/Airtime
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
文件: mm2.py 项目: Robbt/Airtime
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
文件: mm2.py 项目: Gambiit/airtime
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)