# ``twisted`.`application`.`service`.`Process``

class documentation

`class Process: (source)`

Implements interfaces: `twisted.application.service.IProcess`

View In Hierarchy

Process running parameters.

Sets up uid/gid in the constructor, and has a default of `None` as `processName`.

Method | `__init__` | Set uid and gid.
Class Variable | `processName` | A `str` giving the name the process should have in ps (or `None` to leave the name alone).
Instance Variable | `gid` | An `int` giving the group id as which the process should run (or `None` to leave the GID alone).
Instance Variable | `uid` | An `int` giving the user id as which the process should run (or `None` to leave the UID alone).

def __init__(self, uid=None, gid=None): (source)
Set uid and gid.

Parameters
uid | The user ID as whom to execute the process. If this is `None`, no attempt will be made to change the UID.
gid | The group ID as whom to execute the process. If this is `None`, no attempt will be made to change the GID.

processName = (source)
from `twisted.application.service.IProcess`
A `str` giving the name the process should have in ps (or `None` to leave the name alone).
gid = (source)
from `twisted.application.service.IProcess`
An `int` giving the group id as which the process should run (or `None` to leave the GID alone).
uid = (source)
from `twisted.application.service.IProcess`
An `int` giving the user id as which the process should run (or `None` to leave the UID alone).