예제 #1
0
파일: main.py 프로젝트: konairius/synctool
def run(configfile):
    """
    This method is called after initializing the framework and starts the configured servers.
    @param configfile: Path referring to the xml configfile.
    """
    logger.debug('run() method started!')
    for role in config.get_roles(configfile):
        process = Process(target=role)
        print('Starting Process!')
        process.start()
    logger.debug('run() is done!')
예제 #2
0
def main(config):
  check_mem()
  if 'DATANODE' in get_roles(config, socket.gethostname()):
    check_dn_disks(config)