OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó
oBú]c @ sy d Z d d l Z d d l m Z d d l m Z d d l m Z e Z d d g Z e j
e ƒ Z d „ Z
d „ Z d S(
s+
Emit Upstart
------------
**Summary:** emit upstart configuration
Emit upstart configuration for cloud-init modules on upstart based systems. No
user configuration should be required.
**Internal name:** ``cc_emit_upstart``
**Module frequency:** per always
**Supported distros:** ubuntu, debian
iÿÿÿÿN( t log( t
PER_ALWAYS( t utilt ubuntut debianc C s¹ t j j d ƒ s# t j d ƒ t St j j ƒ } d | k rH | d =n d d g } y) t j | d | ƒ\ } } d | k SWn5 t j
k
r´ } t j d d j | ƒ | j ƒ n Xt S(
Ns
/sbin/initctls no /sbin/initctl locatedt UPSTART_SESSIONt initctlt versiont envt upstarts% '%s' returned '%s', not using upstartt (
t ost patht isfilet LOGt debugt Falset environt copyR t subpt ProcessExecutionErrort joint exit_code( t myenvt check_cmdt outt _errt e( ( sD /usr/lib/python2.7/site-packages/cloudinit/config/cc_emit_upstart.pyt is_upstart_system$ s
c
C s² | } | s d g } n t ƒ s5 | j d | ƒ d S| j j d ƒ } xd | D]\ } d d t | ƒ d | g } y t j | ƒ WqN t k
r© } | j d | | ƒ qN XqN Wd S( Ns cloud-configs! not upstart system, '%s' disabledt cloud_configR t emits CLOUD_CFG=%ss. Emission of upstart event %s failed due to: %s( R R t pathst
get_ipath_curt strR R t Exceptiont warning(
t namet _cfgt cloudR t argst event_namest cfgpatht nt cmdR ( ( sD /usr/lib/python2.7/site-packages/cloudinit/config/cc_emit_upstart.pyt handle6 s
( t __doc__R t cloudinitR t loggingt cloudinit.settingsR R t frequencyt distrost getLoggert __name__R R R, ( ( ( sD /usr/lib/python2.7/site-packages/cloudinit/config/cc_emit_upstart.pyt