l.s.t.gracefulshutdown : module documentation

Part of lp.services.twistedsupport

Utilities for graceful shutdown of Twisted services.
Class ConnTrackingFactoryWrapper A factory decorator that tracks the current connections made by this
Class ShutdownCleanlyService A MultiService that doesn't stop until all connections of its factories
Class ServerAvailableResource A Resource indicating if a service is available for new connections.
Class OrderedMultiService A MultiService that guarantees start and stop order.
Function make_web_status_service Make a web site of ServerAvailableResource on a given port.
def make_web_status_service(strport, tracking_factories):
Make a web site of ServerAvailableResource on a given port.

See daemons/sftp.tac for an example use.

Parametersstrporta strport describing the port the web service should listen on.
tracking_factoriesa collection of ConnTrackingFactoryWrapper instances.
Returnsa service.Service
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.