예제 #1
0
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()
예제 #2
0
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()
예제 #3
0
파일: api.py 프로젝트: lihuiba/volt
def main():
    CONF(sys.argv[1:], project='volt',
         version=version.version_string())
    logging.setup('volt')

    # Use the wsgi service to serve the request from client
    server = wsgi.Server('volt-api')
    server.start(CONF.bind_port)
    server.wait()
예제 #4
0
파일: api.py 프로젝트: vmthunder/volt
def main():
    conf_file = ["--config-file=/etc/volt/volt.conf"]
    if len(sys.argv) > 1:
        conf_file = sys.argv[1:]
    CONF(conf_file, project='volt', version=version.version_string())
    logging.setup('volt')

    # Use the wsgi service to serve the request from client
    server = wsgi.Server('volt-api')
    server.start(CONF.bind_port)
    server.wait()
예제 #5
0
파일: api.py 프로젝트: vmthunder/volt
def main():
    conf_file = ["--config-file=/etc/volt/volt.conf"]
    if len(sys.argv) > 1:
        conf_file = sys.argv[1:]
    CONF(conf_file, project='volt',
         version=version.version_string())
    logging.setup('volt')

    # Use the wsgi service to serve the request from client
    server = wsgi.Server('volt-api')
    server.start(CONF.bind_port)
    server.wait()
예제 #6
0
def prepare_service(argv=None):
    #
    gettextutils.install('volt', lazy=True)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=[
                         'amqplib=WARN', 'qpid.messaging=INFO',
                         'sqlalchemy=WARN', 'keystoneclient=INFO',
                         'stevedore=INFO', 'eventlet.wsgi.server=WARN',
                         'iso8601=WARN'
                     ])
    if argv is None:
        argv = sys.argv
    cfg.CONF(argv[1:], project='volt', version=version.version_string())
    log.setup('volt')
예제 #7
0
파일: service.py 프로젝트: lihuiba/volt
def prepare_service(argv=None):
    #
    gettextutils.install('volt', lazy=True)
    cfg.set_defaults(log.log_opts,
                     default_log_levels=['amqplib=WARN',
                                         'qpid.messaging=INFO',
                                         'sqlalchemy=WARN',
                                         'keystoneclient=INFO',
                                         'stevedore=INFO',
                                         'eventlet.wsgi.server=WARN',
                                         'iso8601=WARN'
                                         ])
    if argv is None:
        argv = sys.argv
    cfg.CONF(argv[1:], project='volt',
             version=version.version_string())
    log.setup('volt')