Usage

To use oslo.service in a project:

import oslo_service

Migrating to oslo.service

The oslo.service library no longer assumes a global configuration object is available. Instead the following functions and classes have been changed to expect the consuming application to pass in an oslo.config configuration object:

When using service from oslo-incubator

from foo.openstack.common import service

launcher = service.launch(service, workers=2)

When using oslo.service

from oslo_config import cfg
from oslo_service import service

CONF = cfg.CONF
launcher = service.launch(CONF, service, workers=2)

Table Of Contents

Previous topic

Installation

Next topic

Contributing

This Page