AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/runner/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

Anon7 - 2022
AnonSec Team