Example #1
0
def expirer():
    service.prepare_service()
    if cfg.CONF.database.time_to_live > 0:
        LOG.debug(_("Clearing expired metering data"))
        storage_conn = storage.get_connection_from_config(cfg.CONF)
        storage_conn.clear_expired_metering_data(
            cfg.CONF.database.time_to_live)
    else:
        LOG.info(_("Nothing to clean, database time to live is disabled"))
Example #2
0
def main():
    service.prepare_service()
    os_service.launch(manager.AgentManager('entropy')).wait()
Example #3
0
def dbsync():
    service.prepare_service()
    db.get_connection_from_config(cfg.CONF).upgrade()
Example #4
0
def main():
    service.prepare_service()
    app.build_server()