File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins/__pycache__/service_manager.cpython-311.pyc
Back
� ַ9j � �| � d Z ddlZddlZddlmZ ddlmZmZ ej e � � Z G d� dej � � ZdS )z�Base service manager plugin. Provides the shared start/stop/enable/disable logic that product-specific service managers (imav, im360) inherit from. � N)�utils)�messages�pluginsc � � e Zd ZdZd� Zd� Z ej ej j � � dej j fd�� � Z ej � � d d�� � ZdS ) �BaseServiceManageru� Base service manager: start/stop services based on config changes. Subclasses populate ``_services`` (list of async check callables) and ``_units`` (dict of name → unitctl) in their ``__init__``. c �R � t j � � | _ g | _ i | _ d S �N)�asyncio�Lock�_lock� _services�_units)�selfs �\/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins/service_manager.py�__init__zBaseServiceManager.__init__ s! � ��\�^�^�� ��������� c � �>