Generic Node base class for all workers that run on hosts.
This module provides two launchers for running services:
- ServiceLauncher - used for running one or more service in a parent process.
- ProcessLauncher - forks a given number of workers in which service(s) are then started.
Please be informed that it is highly recommended to use no more than one instance of ServiceLauncher and ProcessLauncher classes per process.
Bases: object
Launch one or more services and wait for them to complete.
Load and start the given service.
Parameters: | service – The service you would like to start. |
---|---|
Returns: | None |
Reload config files and restart service.
Returns: | None |
---|
Stop all services which are currently running.
Returns: | None |
---|
Wait until all services have been stopped, and then return.
Returns: | None |
---|
Bases: object
Launch a service with a given number of workers.
Add instance’s signal handlers to class handlers.
Launch a service with a given number of workers.
Parameters: |
|
---|
Terminate child processes and wait on each.
Loop waiting on children to die and respawning as necessary.
Bases: oslo_service.service.ServiceBase
Service object for binaries running on hosts.
Reset a service in case it received a SIGHUP.
Start a service.
Stop a service.
Parameters: | graceful – indicates whether to wait for all threads to finish or terminate them instantly |
---|
Wait for a service to shut down.
Bases: object
Base class for all services.
Reset service.
Called in case service running in daemon mode receives SIGHUP.
Start service.
Stop service.
Wait for service to complete.
Bases: oslo_service.service.Launcher
Runs one or more service in a parent process.
Set self._handle_signal as a signal handler.
Wait for a service to terminate and restart it on SIGHUP.
Returns: | termination status |
---|
Launch a service with a given number of workers.
Parameters: |
|
---|---|
Returns: | instance of a launcher that was used to launch the service |
Entry point for oslo-config-generator.