Part of twisted.runner.procmon View Source View In Hierarchy
| Method | __init__ | Undocumented | 
| Method | __getstate__ | Undocumented | 
| Method | addProcess | Add a new process to launch, monitor, and restart when necessary. | 
| Method | removeProcess | Undocumented | 
| Method | startService | Start the service. | 
| Method | stopService | Stop the service. | 
| Method | connectionLost | Undocumented | 
| Method | startProcess | Undocumented | 
| Method | stopProcess | Undocumented | 
| Method | restartAll | Undocumented | 
| Method | __repr__ | Undocumented | 
| Method | _checkConsistency | Undocumented | 
| Method | _forceStopProcess | Undocumented | 
Inherited from Service:
| Method | setName | Set the name of the service. | 
| Method | setServiceParent | Set the parent of the service. | 
| Method | disownServiceParent | Use this API to remove an IService 
from an IServiceCollection.
 | 
  
| Method | privilegedStartService | Do preparation work for starting the service. | 
| Parameters | name | A label for this process. This value must be unique across all processes added to this monitor. | 
| args | The argv sequence for the process to launch. | |
| uid | The user ID to use to run the process.  If None, the 
current UID is used.
 (type: int
) | |
| gid | The group ID to use to run the process.  If None, the 
current GID is used.
 | |
| uid |  (type: int
) | |
| env | The environment to give to the launched process.  See 
IReactorProcess.spawnProcess's env parameter.
 (type: dict
) | 
| Returns | a Deferred which is triggered when the service has finished
shutting down. If shutting down is immediate, a value can be returned 
(usually, None).
 (type: Deferred
) | |