U
    id                     @   s6   d dl mZmZmZ d dlmZ G dd deeZdS )    )PluginIndependentPluginSoSPredicate)is_executablec                   @   s(   e Zd ZdZdZdZdZdZdd ZdS )	SystemdzSystem management daemonsystemd)systemservicesZboot)r   )/run/systemd/systemc                 C   s   |  ddddd | jdddd	d
ddddddddddddddgdd | jddd tdrhd}d }nd!}d"}| j||gt| d#gd$d% | jd&d'd( | d)r| d* | d+d,d-d.d/d0d1d2d3d4d5d6d7d8g | d9 d S ):NZetc_journald_confZusr_journald_conf_dZsystemd_system_confZsystemd_logind_conf)z/etc/systemd/journald.confz/usr/lib/systemd/journald.confz/etc/systemd/system.confz/etc/systemd/logind.confzjournalctl --list-bootszls -lR /lib/systemdzsystemctl list-dependencieszsystemctl list-jobszsystemctl list-machineszsystemctl list-unit-fileszsystemctl list-unitszsystemctl list-units --allzsystemctl list-units --failedzsystemctl list-timers --allzsystemctl show --allzsystemctl show *service --allzsystemctl show-environmentzsystemctl status --allzsystemd-deltazsystemd-analyzezsystemd-analyze blamezsystemd-analyze dumpzsystemd-inhibit --listT)Z
cmd_as_tagZtimedatectldate)Zroot_symlinkZ
resolvectlzresolvectl statuszresolvectl statisticszsystemd-resolve --statuszsystemd-resolve --statisticszsystemd-resolved)r	   )Zpredzsystemd-analyze plotzsystemd-analyze_plot.svg)Zsuggest_filenameZverifyzjournalctl --verifyz/etc/systemdz/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_tagsZadd_cmd_outputr   r   Z
get_optionZadd_copy_specZadd_forbidden_path)selfZresolvectl_statusZresolvectl_statistics r   </usr/lib/python3/dist-packages/sos/report/plugins/systemd.pysetup   s~    

zSystemd.setupN)	__name__
__module____qualname__Z
short_descZplugin_nameZprofilesZpackagesfilesr   r   r   r   r   r      s   r   N)Zsos.report.pluginsr   r   r   Zsos.utilitiesr   r   r   r   r   r   <module>   s   