Part of twisted.application.service View Source View In Hierarchy
Known subclasses: twisted.application.internet._VolatileDataService, twisted.application.internet.CooperatorService, twisted.application.internet.StreamServerEndpointService, twisted.application.service.MultiService, twisted.manhole.service.Service, twisted.names.secondary.SecondaryAuthorityService, twisted.runner.procmon.ProcessMonitor, twisted.words.protocols.jabber.component.Service
Implements interfaces: twisted.application.service.IService
Most services should inherit from this class. It handles the book-keeping reponsibilities of starting and stopping, as well as not serializing this book-keeping information.
|Method||setName||Set the name of the service.|
|Method||setServiceParent||Set the parent of the service. This method is responsible for setting
|Method||disownServiceParent||Use this API to remove an
|Method||privilegedStartService||Do preparation work for starting the service.|
|Method||startService||Start the service.|
|Method||stopService||Stop the service.|
|Raises||RuntimeError||Raised if the service already has a parent.|
parentattribute on this service (the child service).
|Raises||RuntimeError||Raised if the service already has a parent or if the service has a name and the parent already has a child by that name.|
This method is used symmetrically with
in that it sets the
parent attribute on the child.
Here things which should be done before changing directory, root or shedding privileges are done.