Пример #1
0
def main():
    service.prepare_service()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Пример #2
0
def main():
    service.prepare_service()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Пример #3
0
def main():
    service.prepare_service()
    rpc.init()
    server = app.build_server()
    try:
        server.serve_forever()
    except KeyboardInterrupt:
        pass
Пример #4
0
def main():
    service.prepare_service()
    rpc.init()
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Пример #5
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.CloudKittyServiceManager().run()
Пример #6
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # function is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg options are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    orchestrator.OrchestratorServiceManager().run()
Пример #7
0
def main():
    service.prepare_service()

    # NOTE(mc): This import is done here to ensure that the prepare_service()
    # fonction is called before any cfg option. By importing the orchestrator
    # file, the utils one is imported too, and then some cfg option are read
    # before the prepare_service(), making cfg.CONF returning default values
    # systematically.
    from cloudkitty import orchestrator
    processor = orchestrator.Orchestrator()
    try:
        processor.process()
    except KeyboardInterrupt:
        processor.terminate()
Пример #8
0
def main():
    service.prepare_service()
    CONF.command.func()
Пример #9
0
def main():
    service.prepare_service()
    CONF.command.func()
Пример #10
0
def main():
    service.prepare_service()
    init_storage_backend()
Пример #11
0
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
Пример #12
0
def main():
    service.prepare_service()
    init_storage_backend()
Пример #13
0
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)
Пример #14
0
def build_wsgi_app(argv=None):
    service.prepare_service()
    return load_app()
Пример #15
0
def main():
    service.prepare_service()
    command_object = DBCommand()
    CONF.command.func(command_object)