HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/lib/python3.9/site-packages/rhn/actions/__pycache__/rhnsd.cpython-39.opt-1.pyc
a

�f8hS�@srddlZdgZd
dd�Zddd�Zedkrneed��eedd	��eed
d	d��eed	d��eed��dS)�N�	configurecCs�d}t|d�}|��}d}d}g}|D]:}|��}	|�|	�|	�dd�}
|
ddkrX|}|d}q&|dkrvd|||<|��t|d�}d	�|�}|�|�|��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�line�tmp�comps�contents�r�5/usr/lib/python3.9/site-packages/rhn/actions/rhnsd.py�
__configRhnsds(





rcCsd|rddifSd}|rDzt|�d}WntyBddifYS0|rZt�d�}|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�msg�rcrrrr(s

�__main__Z240Z361rZ127)r"Z192)N)NNN)r Z
__rhnexport__rr�__name__�printrrrr�<module>s�