Beispiel #1
0
def main():  # pragma: no cover
    mimic_service.prepare_service(sys.argv)
    CONF.log_opt_values(LOG, logging.INFO)
    LOG.info("mimic log service start, scanning %s." %
             CONF.uos_install_stage2_log)
    commands.getstatusoutput("touch %s" % CONF.uos_install_stage2_log)
    for line in tailer.follow(open(CONF.uos_install_stage2_log)):
        get_status_from_input(line)
Beispiel #2
0
def main():
    # Pase config file and command line options, then start logging
    mimic_service.prepare_service(sys.argv)

    # Build and start the WSGI app
    host = CONF.mimic_api_bind_ip
    port = CONF.mimic_api_port
    LOG = log.getLogger(__name__)
    LOG.info("Serving on http://%s:%s" % (host, port))
    LOG.info("Configuration:")
    CONF.log_opt_values(LOG, logging.INFO)
    wsgi.server(eventlet.listen((host, port)), app.VersionSelectorApplication())