AlkantarClanX12

Your IP : 3.23.92.64


Current Path : /proc/self/root/lib/python3.6/site-packages/rhn/actions/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3.6/site-packages/rhn/actions/__pycache__/reboot.cpython-36.pyc

3

ػ$gN�@s^ddlZdgZddlmZddlmZej�Zej�ZdZ	d
dd�Z
dd�Zed	krZe�dS)�N�reboot)�
up2dateLog)�config�c
Cs�|rddifStdr ddifStj�}ddi}dtj�d	d
}|s�y4|rftjdddd
d|g�ntjdddd|g�Wn"tk
r�d|d<dd|fSXtjd�dd|fS)Nrzno-ops for cachingZnoReboot�&z*Up2date is configured not to allow reboots�version�0zReboot of system "�z'" initiated by Spacewalk reboot action.z/sbin/shutdownz-rz-kz+3zreboot.reboot.shutdown_failed�name�"z Could not execute /sbin/shutdownzRebooting the system nowzReboot sucessfully started)�cfg�os�fork�uname�execvp�OSError�logZlog_me)�testZ
cache_only�pid�dataZreboot_message�r�/usr/lib/python3.6/reboot.pyrs"


cCsttdd��dS)Nr	)r)�printrrrrr�main1sr�__main__)NN)
r
Z
__rhnexport__Zup2date_clientrrZinitUp2dateConfigrZinitLogrZACTION_VERSIONrr�__name__rrrr�<module>	s