File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/__pycache__/service_manager.cpython-311.pyc
Back
� ,|_j� � � � d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZ d gZ ej e� � Z G d� d e� � ZdS )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> AV services manager plugin. Manages patchman service based on imunify config changes. Runs on both AV-only and IM360 installations. � N)�utils)�messages�plugins)�BaseServiceManager)�svcctl)�Patchman)�PATCHMAN_SERVICE_NAME)�is_installed�ServiceManagerc � � � e Zd ZdZej j Zej Z dd�� fd� Zd� Z e j ej j e�� � dej j fd�� � Zdd �Z� xZS )r z-AV service manager: manages patchman service.N)�unitctlc � �� t � � � � � | j g| _ d|pt j t � � i| _ d S �N�patchman)�super�__init__�!_ensure_consistent_patchman_state� _servicesr �adaptorr �_units)�selfr � __class__s ��Q/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/service_manager.pyr zServiceManager.__init__7 sH �� � ���������@�A�����H�6�>�2G�#H�#H� ����� c � � K � d S �N� )r �loops r �create_sinkzServiceManager.create_sink>