????
Current Path : /lib/python3.6/site-packages/glances/amps/__pycache__/ |
Current File : //lib/python3.6/site-packages/glances/amps/__pycache__/glances_systemv.cpython-36.pyc |
3 Eo�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 sB t jdj| j| jd��� y t| jd�j� td�jd�}W n6 t k rp } zt jdj| j|�� W Y dd}~X n�X dddd�}x�|jd �D ]r}|j� }t |�d k r�q�|d dkr�|d d7 <