Part of twisted.application.service View Source View In Hierarchy
Known implementations: twisted.application.service.Service
A service.Run start-up and shut-down code at the appropriate times.
|Instance Variables||name||The name of the service (or None)
|running||Whether the service is running.
|Method||setName||Set the name of the service.|
|Method||setServiceParent||Set the parent of the service.|
|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.|
|Parameters||name|| (type: |
|Raises||RuntimeError||Raised if the service already has a parent.|
|Parameters||parent|| (type: |
|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.|
setServiceParentin that it sets the
parentattribute on the child.
Do preparation work for starting the service.Here things which should be done before changing directory, root or shedding privileges are done.