File: //usr/lib/python3/dist-packages/twisted/runner/__pycache__/procmontap.cpython-38.pyc
U
W[� � @ s: d Z ddlmZ ddlmZ G dd� dej�Zdd� ZdS ) z>
Support for creating a service which runs a process monitor.
� )�usage)�ProcessMonitorc @ s` e Zd ZdZdZddddegddd d
egdddd
egddddeggZg ZdZdd� Z dd� Z
dS )�OptionszF
Define the options accepted by the I{twistd procmon} plugin.
z[procmon options] commandline� threshold�t� zRHow long a process has to live before the death is considered instant, in seconds.�killtime�k� zpHow long a process being killed has to get its affairs in order before it gets killed with an unmaskable signal.�minrestartdelay�mzLThe minimum time (in seconds) to wait before attempting to restart a process�maxrestartdelay�Mi zLThe maximum time (in seconds) to wait before attempting to restart a processa` procmon runs processes, monitors their progress, and restarts them when they
die.
procmon will not attempt to restart a process that appears to die instantly;
with each "instant" death (less than 1 second, by default), it will delay
approximately twice as long before restarting it. A successful run will reset
the counter.
Eg twistd procmon sleep 10c G s || d<