AlkantarClanX12

Your IP : 18.225.56.78


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__/rhnsd.cpython-36.pyc

3

ػ$gS�@srddlZdgZd
dd�Zddd�Zedkrneed��eedd	��eed
d	d��eed	d��eed��dS)�N�	configurecCs�d}t|d�}|j�}d}d}g}xB|D]:}|j�}	|j|	�|	jdd�}
|
ddkrZ|}|d}q(W|dkrzd|||<|j�t|d�}d	j|�}|j|�|j�dS)
Nz/etc/sysconfig/rhn/rhnsd�rr�=�ZINTERVALzINTERVAL=%s�w�
)�open�	readlines�strip�append�split�close�join�write)�interval�
cache_onlyZrhnsdconfig�fd�lines�count�indexZtmplines�lineZtmp�comps�contents�r�/usr/lib/python3.6/rhnsd.py�
__configRhnsds(





rcCsb|rddifSd}|rByt|�d}Wntk
r@ddifSX|rXtjd�}|d}d|ifS)	Nrzno-ops for caching�zrhnsd interval config updated. �%z)Could not modify /etc/sysconfig/rhn/rhnsdz'/sbin/service rhnsd restart > /dev/nullzrhnsd restarted)r�IOError�os�system)r�restartr�msgZrcrrrr(s

�__main__Z240Z361rZ127)r!Z192)N)NNN)rZ
__rhnexport__rr�__name__�printrrrr�<module>s