Exemplo n.º 1
0
def main():
    try:
        logging.setup(CONF, 'celebrer')
        launcher = service.ServiceLauncher(CONF)
        for rpc_service in engine.get_rpc_service():
            launcher.launch_service(rpc_service)
        # ToDO(all): Implement API
        launcher.wait()
    except RuntimeError as e:
        sys.stderr.write("ERROR: %s\n" % e)
        sys.exit(1)
Exemplo n.º 2
0
def main():
    try:
        config.parse_args()
        logging.setup(CONF, 'celebrer')
        launcher = service.ServiceLauncher(CONF)
        for rpc_service in engine.get_rpc_service():
            launcher.launch_service(rpc_service)
        launcher.wait()
    except RuntimeError as e:
        sys.stderr.write("ERROR: %s\n" % e)
        sys.exit(1)