| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/supervisor/__pycache__/ |
Upload File : |
�
���f�8 � �� � d Z ddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddl mZ ddl mZ ddl
mZ dd lmZ dd
lmZ G d� d� Zd
� Zd� Zdd�Zd� Zedk( r e� yy)a� supervisord -- run a set of applications as daemons.
Usage: %s [options]
Options:
-c/--configuration FILENAME -- configuration file path (searches if not given)
-n/--nodaemon -- run in the foreground (same as 'nodaemon=true' in config file)
-s/--silent -- no logs to stdout (maps to 'silent=true' in config file)
-h/--help -- print this usage message and exit
-v/--version -- print supervisord version number and exit
-u/--user USER -- run supervisord as this user (or numeric uid)
-m/--umask UMASK -- use this umask for daemon subprocess (default is 022)
-d/--directory DIRECTORY -- directory to chdir to when daemonized
-l/--logfile FILENAME -- use FILENAME as logfile path
-y/--logfile_maxbytes BYTES -- use BYTES to limit the max size of logfile
-z/--logfile_backups NUM -- number of backups to keep when max bytes reached
-e/--loglevel LEVEL -- use LEVEL as log level (debug,info,warn,error,critical)
-j/--pidfile FILENAME -- write a pid file for the daemon process to FILENAME
-i/--identifier STR -- identifier used for this instance of supervisord
-q/--childlogdir DIRECTORY -- the log directory for child process logs
-k/--nocleanup -- prevent the process from performing cleanup (removal of
old automatic child log files) at startup.
-a/--minfds NUM -- the minimum number of file descriptors for start success
-t/--strip_ansi -- strip ansi escape codes from process output
--minprocs NUM -- the minimum number of processes available for start success
--profile_options OPTIONS -- run supervisord under profiler and output
results based on OPTIONS, which is a comma-sep'd
list of 'cumulative', 'calls', and/or 'callers',
e.g. 'cumulative,callers')
� N)�asyncore_25)� as_string)�
ServerOptions)�decode_wait_status)�signame)�events)�SupervisorStates)�getProcessStateDescriptionc �z � e Zd ZdZdZdZdZd� Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zdd�Zdd�Zd� Zd� Zy)�
SupervisorFr Nc �. � || _ i | _ i | _ y �N)�options�process_groups�ticks)�selfr s �8/usr/lib/python3/dist-packages/supervisor/supervisord.py�__init__zSupervisor.__init__6 s � ���� �����
� c � � | j j s| j j � | j j � | j j r| j j � | j j � | j j s| j j � | j � y r ) r �first�cleanup_fds�set_uid_or_exit�set_rlimits_or_exit�make_logger� nocleanup�clear_autochildlogdir�run�r s r �mainzSupervisor.main; s� � ��|�|�!�!�
�L�L�$�$�&����$�$�&��<�<����L�L�,�,�.�
��� � �"��|�|�%�%��L�L�.�.�0����
r c �^ � i | _ d | _ t j � | j j
D ] }| j
|� � | j j | � | j j � | j j s0| j j r| j j � | j j � | j � | j j � y # | j j � w xY wr )r �stop_groupsr �clearr �process_group_configs�add_process_group�openhttpservers�
setsignals�nodaemonr � daemonize�
write_pidfile�
runforever�cleanup)r �configs r r zSupervisor.runP s� � � ���������� #��,�,�<�<�
/���&�&�v�.�
/��L�L�(�(��.��L�L�#�#�%��L�L�)�)�t�|�|�/A�/A����&�&�(�
�L�L�&�&�(��O�O���L�L� � �"��D�L�L� � �"�s �CD �D,c �^ � | j j }| j j � D �cg c] }|j �� }}t t
|D �cg c] }|j �� c}|� � }t t
|D �cg c] }|j �� c}|� � }|D �cg c] }|j |vs�|�� }}|D �cg c] }|j |vs�|�� } }|D �cg c]# }||j |j |� k7 r|��% }
}||
| fS c c}w c c}w c c}w c c}w c c}w c c}w r ) r r$ r �valuesr- �dict�zip�name�get)r �new�group�cur�cfg�curdict�newdict�cand�added�removed�changeds r �diff_to_activezSupervisor.diff_to_activeb s � ��l�l�0�0��)-�)<�)<�)C�)C�)E�F��u�|�|�F��F��s��4��C�H�H�4�c�:�;���s��4��C�H�H�4�c�:�;��$'�D�D�4�9�9�G�+C�4�D��D�$'�D�D�4�9�9�G�+C�4�D��D�$'� <�D��g�k�k�$�)�)�T�:�:� � <�� <� �g�w�&�&�� G��4��4��D��D��<s/ �D�D�D�&D �:D �D%�D%�"(D*c �� � |j }|| j vrV|j � |j � | j |<