Файловый менеджер - Редактировать - /usr/lib/python3.9/site-packages/glances/amps/__pycache__/glances_systemv.cpython-39.pyc
Назад
a ���cY � @ sL d Z ddlmZmZ ddlmZ ddlmZ ddlm Z G dd� de �Z dS ) a SystemV AMP =========== Monitor the state of the System V init system and service. How to read the stats --------------------- Running: Number of running services. Stopped: Number of stopped services. Upstart: Number of service managed by Upstart. Source reference: http://askubuntu.com/questions/407075/how-to-read-service-status-all-results Configuration file example -------------------------- [amp_systemv] # Systemv enable=true regex=\/sbin\/init refresh=60 one_line=true service_cmd=/usr/bin/service --status-all � )�check_output�STDOUT)�logger)� iteritems)� GlancesAmpc @ s, e Zd ZdZdZdZdZdZdZdd� Z d S ) �AmpzGlances' Systemd AMP.ZSystemVz1.0z&Get services list from service (initd)Z Nicolargozcontact@nicolargo.comc C s< t �d�| j| �d��� z t| �d��� td��d�}W n8 t yr } z t �d�| j|�� W Y d}~n�d}~0 0 dddd�}|�d �D ]r}|�� }t |�d k r�q�|d dkr�|d d7 <