- def __init__(self, command, start_wait=0, termsig=signal.SIGTERM):
+ """A device that in activated by starting a process and deactivated by
+ killing the process.
+
+ @type pid: int or None
+ @ivar pid: is either None if there is no process or the pid of the
+ spawned process
+ @ivar starting: is either None or a ScheduledFunction representing the
+ callback signalling the end of the activation transition.
+ @type killed: bool
+ @ivar killed: indicates whether the termination signal has been sent
+ to the spawned process.
+ """
+ def __init__(self, command, termsig=signal.SIGTERM):
+ """
+ @type command: [str]
+ @param command: an argument vector to be executed. The first element
+ is used as executable and looked up in $PATH.
+ @param termsig: termination signal to be sent to the process to
+ deactivate it. The process must exit in response to this
+ signal.
+ """