| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.7/site-packages/cloudinit/config/ |
Upload File : |
�
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 <module> s