MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pyc
�
d�bc@s�ddlZddlZddlmZddlmZd�Zde_d�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�ZdS(i����N(t
get_osutil(t	shellutilcCs%tjdkrt�t_ntjS(N(t_get_os_utiltvaluetNoneR(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pyRscCstjjd�S(s�
    Determine if systemd is managing system services; the implementation follows the same strategy as, for example,
    sd_booted() in libsystemd, or /usr/sbin/service
    s/run/systemd/system/(tostpathtexists(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pyt
is_systemd scCstjddg�S(Nt	systemctls	--version(Rtrun_command(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_version(scCs
t�j�S(s"
    e.g. /lib/systemd/system
    (Rt"get_systemd_unit_file_install_path(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_unit_file_install_path1scCst�j�dS(s#
    e.g. walinuxagent.service
    s.service(Rtget_service_name(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_agent_unit_name8scCstjjt�t��S(s7
    e.g. /lib/systemd/system/walinuxagent.service
    (RRtjoinR
R(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_agent_unit_file?scCs"tjjt�djt���S(s9
    e.g. /lib/systemd/system/walinuxagent.service.d
    s{0}.d(RRRR
tformatR(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_agent_drop_in_pathFscCsdtjdd|d|g�}tjd|�}|dkrWtdj||���n|jd�S(NR	tshows
--propertys[^=]+=(?P<value>.+)sCan't find property {0} of {1}R(RR
tretmatchRt
ValueErrorRtgroup(t	unit_namet
property_nametoutputR((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pytget_unit_propertyMs
(RRtazurelinuxagent.common.osutilRtazurelinuxagent.common.utilsRRRRRRR
RRRR(((sI/usr/lib/python2.7/site-packages/azurelinuxagent/common/osutil/systemd.pyt<module>s