
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
\¼me¡  ã            	   @   s¶   U d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
mZ ddlmZ ddlmZ eZd	Zd
ddeegeg g dœZe
eeƒZ ejeƒZdZeeeeddœdd„ZdS )z&Scripts Per Boot: Run per boot scriptsé    N)Úsubp)ÚCloud)ÚConfig)Ú
MetaSchemaÚget_meta_doc)ÚALL_DISTROS)Ú
PER_ALWAYSzÅAny scripts in the ``scripts/per-boot`` directory on the datasource will be run
every time the system boots. Scripts will be run in alphabetical order. This
module does not accept any config keys.
Zcc_scripts_per_bootzScripts Per BootzRun per boot scripts)ÚidÚnameÚtitleÚdescriptionZdistrosÚ	frequencyZexamplesZactivate_by_schema_keyszper-boot)r
   ÚcfgÚcloudÚargsÚreturnc             C   sN   t jj|jƒ dtƒ}ytj|ƒ W n& tk
rH   tj	d| t|ƒ ‚ Y nX d S )NÚscriptsz"Failed to run module %s (%s in %s))
ÚosÚpathÚjoinZ	get_cpathÚSCRIPT_SUBDIRr   ZrunpartsÚ	ExceptionÚLOGZwarning)r
   r   r   r   Zrunparts_path© r   ú)/usr/lib/python3.6/cc_scripts_per_boot.pyÚhandle-   s    r   )Ú__doc__Zloggingr   Z	cloudinitr   Zcloudinit.cloudr   Zcloudinit.configr   Zcloudinit.config.schemar   r   Zcloudinit.distrosr   Zcloudinit.settingsr   r   ZMODULE_DESCRIPTIONÚmetaZ	getLoggerÚ__name__r   r   ÚstrÚlistr   r   r   r   r   Ú<module>   s,   
