Файловый менеджер - Редактировать - /opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/subsys/__pycache__/aibolit.cpython-311.opt-1.pyc
Назад
� �V�i� � �d � d Z ddlZddlmZ ddlmZ ej e� � ZdZ dZ d� Zd� Zd � Z dS ) u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�svcctl)� CheckRunErrorzaibolit-resident.socketzaibolit-residentc � �� K � |r�t � d� � t j t � � }t j t � � } t ||� � � d {V �� |� � � � d {V �� nD# t $ r7}dt |� � v r t � d� � Y d }~d S � d }~ww xY wt � d� � d S d S )Nz"ai-bolit service will be restartedz is maskedz?Aibolit service is masked, skipping restart during installationzai-bolit service restarted)�logger�infor �adaptor�AIBOLIT_SOCKET_NAME�AIBOLIT_SVCNAME�_ensure_socket_active�restartr �str�warning�debug)�_� is_updated�aibolit_socket�aibolit_service�es �S/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/subsys/aibolit.py� restart_on_sigs_or_config_updater ! s � � � �� 3����8�9�9�9���(;�<�<�� �.��9�9�� �'���H�H�H�H�H�H�H�H�H�!�)�)�+�+�+�+�+�+�+�+�+�+��� � � ��c�!�f�f�$�$����$�� � � ����������� ���� ���1�2�2�2�2�2�3� 3s �0B � C� +B?�>B?�?Cc � �j K � |� � � � d{V ��sjt � d� � | � � � � d{V �� |� � � � d{V �� |� � � � d{V �� dS dS # t $ r t � d� � Y dS w xY w)a� Restart aibolit-resident.socket if it was killed by systemd rate limiting. When the service hits StartLimitBurst, systemd stops both the service *and* the socket (via PartOf) and marks them failed. A plain ``restart`` of the service won't help because the socket stays dead. We reset-failed + restart the socket so that the next scan can trigger socket activation again.Nz1aibolit-resident.socket is not active, recoveringz)failed to recover aibolit-resident.socket)� is_activer r �reset_failedr � Exception� exception)r r s r r r 4 s � � � �F�#�-�-�/�/�/�/�/�/�/�/� +��N�N�N�O�O�O�!�.�.�0�0�0�0�0�0�0�0�0� �-�-�/�/�/�/�/�/�/�/�/� �(�(�*�*�*�*�*�*�*�*�*�*�*� +� +�� � F� F� F����D�E�E�E�E�E�E�F���s �BB � $B2�1B2c � �6 K � t d d� � � d {V �� d S )NT)r � � r �$restart_on_detect_admin_tools_updater E sF � � � � *���� � � � � � � � � � r )�__doc__�logging�defence360agent.subsysr �defence360agent.utilsr � getLogger�__name__r r r r r r r r r �<module>r&