HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/uaclient/daemon/__pycache__/__init__.cpython-312.pyc
�

��Jh�����ddlZddlZddlmZddlmZmZmZddlm	Z	ddl
mZejeje��Zej j#edd�Zd�Zd	�Zd
e	fd�Zy)�N)�TimeoutExpired)�
exceptions�system�util)�UAConfig)�DEFAULT_DATA_DIR�messageszmotd-auto-attach-statusc��	tjgd�d��y#tjtf$r!}t
j
||��Yd}~yd}~wwxYw)N)�	systemctl�start�ubuntu-advantage.service�@��timeout��exc_info�r�subpr�ProcessExecutionErrorr�LOG�warning��es �:/usr/lib/python3/dist-packages/uaclient/daemon/__init__.pyrrsH��#����>��	
��
�,�,�n�=�#����A���"�"��#����A�A�Ac��	tjgd�d��y#tjtf$r!}t
j
||��Yd}~yd}~wwxYw)N)r�stopr
rrrrrs rrrsH��#����=�s�	
��
�,�,�n�=�#����A���"�"��#�r�cfgc�2�ddlm}|j|�y)Nr)�retry_auto_attach)�uaclient.daemonr �cleanup)rr s  rr"r""s��1����c�"�)�logging�os�
subprocessr�uaclientrrr�uaclient.configr�uaclient.defaultsr�	getLogger�replace_top_level_logger_name�__name__r�path�join�AUTO_ATTACH_STATUS_MOTD_FILErrr"�r#r�<module>r1sk���	�%�-�-�$�.��g���:��:�:�8�D�E��!�w�w�|�|��j�";� ��
#�#�#��#r#