| Current Path : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
| Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/systemd.cpython-38.pyc |
U
-�_g� � @ s6 d dl mZmZmZ d dlmZ G dd� dee�ZdS )� )�Plugin�IndependentPlugin�SoSPredicate)�
is_executablec @ s0 e Zd ZdZdZdZdZdZdd� Zdd � Z d
S )�SystemdzSystem management daemon�systemd)�system�servicesZboot)r )�/run/systemd/systemc C s� | � ddddd�� | jddd� | jd d
ddd
dddddddddddddgdd� | jddd� td�rtd }d!}nd"}d#}| j||gt| d$gd%�d&� | jd'd(d)� | �d*�r�| �d+� | �d,d-d.d/d0d1d2d3d4d5d6d7d8d9g� | �d:� d S );NZetc_journald_confZusr_journald_conf_dZsystemd_system_confZsystemd_logind_conf)z/etc/systemd/journald.confz/usr/lib/systemd/journald.confz/etc/systemd/system.confz/etc/systemd/logind.confz/lib/systemdT)� recursivezjournalctl --list-bootszsystemctl list-dependencieszsystemctl list-jobszsystemctl list-machineszsystemctl list-unit-fileszsystemctl list-unitszsystemctl list-units --allzsystemctl list-units --failedzsystemctl list-timers --allzsystemctl show --allzsystemctl show *service --allzsystemctl show-environmentzsystemctl status --allz
systemd-deltazsystemd-analyzezsystemd-analyze blamezsystemd-analyze dumpzsystemd-inhibit --list)Z
cmd_as_tagZtimedatectl�date)Zroot_symlinkZ
resolvectlzresolvectl statuszresolvectl statisticszsystemd-resolve --statuszsystemd-resolve --statisticszsystemd-resolved)r )Zpredzsystemd-analyze plotzsystemd-analyze_plot.svg)Zsuggest_filenameZverifyzjournalctl --verifyz/etc/systemd�/lib/systemd/systemz/lib/systemd/userz/etc/vconsole.confz/run/systemd/generator*z/run/systemd/seatsz/run/systemd/sessionsr
z/run/systemd/usersz/etc/modules-load.d/*.confz!/etc/yum/protected.d/systemd.confz/etc/tmpfiles.d/*.confz/run/tmpfiles.d/*.confz/usr/lib/tmpfiles.d/*.confz /dev/null)Z
add_file_tagsZadd_dir_listingZadd_cmd_outputr r Z
get_optionZ
add_copy_specZadd_forbidden_path)�selfZresolvectl_statusZresolvectl_statistics� r �</usr/lib/python3/dist-packages/sos/report/plugins/systemd.py�setup s~ ������
�z
Systemd.setupc C s | � dddg� d S )Nz/etc/systemd/systemr
r
)Zdo_paths_http_sub)r r r r �postprocb s
�zSystemd.postprocN)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackages�filesr r r r r r r s Jr N)Zsos.report.pluginsr r r Z
sos.utilitiesr r r r r r �<module> s