def main(): CONF(sys.argv[1:], project='oslo') logging.setup("oslo") with contextlib.closing(impl_zmq.ZmqProxy(CONF)) as reactor: reactor.consume_in_thread() reactor.wait()
def main(): conf = config.get_config_object_no_parse() conf.register_cli_opt(command_opt) conf = config.parse_config_object(conf, skip_global=False) log.setup('staccato') conf.command.func(conf)
def main(): try: conf = config.get_config_object() log.setup('staccato') sched = scheduler.get_scheduler(conf) sched.start() sched.wait() except RuntimeError as e: fail(1, e)
def main(): try: conf = config.get_config_object() paste_file = conf.find_file(conf.paste_deploy.config_file) if conf.paste_deploy.flavor is None: flavor = 'staccato-api' else: flavor = 'staccato-api-' + conf.paste_deploy.flavor log.setup('staccato') wsgi_app = os_pastedeploy.paste_deploy_app(paste_file, flavor, conf) server = os_wsgi.Service(wsgi_app, conf.bind_port) server.start() server.wait() except RuntimeError as e: fail(1, e)