Ejemplo n.º 1
0
def main():
    config.parse_args(sys.argv)
    logging.setup("rack")
    utils.monkey_patch()

    server = service.Service.create(binary="rack-resourceoperator", topic=CONF.resourceoperator_topic)
    service.serve(server)
    service.wait()
Ejemplo n.º 2
0
def main():
    config.parse_args(sys.argv)
    logging.setup("rack")
    utils.monkey_patch()

    launcher = service.process_launcher()
    server = service.WSGIService('rackapi')
    launcher.launch_service(server, workers=server.workers or 1)
    launcher.wait()
Ejemplo n.º 3
0
def main():
    config.parse_args(sys.argv)
    logging.setup("rack")
    utils.monkey_patch()

    launcher = service.process_launcher()
    server = service.WSGIService('rackapi')
    launcher.launch_service(server, workers=server.workers or 1)
    launcher.wait()