twisted.application.serviceView Source (View In Hierarchy)
Known implementations: twisted.application.service.Service
Run start-up and shut-down code at the appropriate times.
|Instance Variable||name||The name of the service (or None) (type:
|Instance Variable||running||Whether the service is running. (type:
|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||startService||Start the service.|
|Method||stopService||Stop the service.|
|Method||privilegedStartService||Do preparation work for starting the service.|
Set the name of the service.
|Raises||RuntimeError||Raised if the service already has a parent.|
Set the parent of the service. This method is responsible for setting
parent attribute 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.
Start the service.
Do preparation work for starting the service.
Here things which should be done before changing directory, root or shedding privileges are done.