????
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/lve.cpython-311.pyc |
� �ʘf � �b � d dl Z d dlZd dlmZmZ d dlmZmZmZ ed� � d� � � Z dS )� N)�run�task)� STATE_STOPPED� STATE_RUNNING�set_service_statezUnloading lve modulec �N �� t ddg� � } | j �| j � � � ng ��fd�dD � � }|rt ddg|�� � t g d�� � } t j d � � � � � rt j d � � dS dS )zO Restart services that still use lve device and unload lve module then �lsofz/dev/lveNc �L ��� g | ]�t �fd ��D � � � � ���� S )c 3 �B �K � | ]}|� �� � V � �d S )N)� startswith)�.0�l�services ��py/clconfigure/lve.py� <genexpr>z/unload_lve_module.<locals>.<listcomp>.<genexpr> s/ �� � � �?�?��q�|�|�G�$�$�?�?�?�?�?�?� )�any)r r �res_stdout_liness @�r � <listcomp>z%unload_lve_module.<locals>.<listcomp> sN ��� � � � ���?�?�?�?�.>�?�?�?�?�?���� � r )�mysqld�mariadb�httpd� systemctl�restart)�modprobez-rf�kmodlvez/sys/module/kmodlvez:Failed to unload the lve module. Please reboot the server.)r �stdout�split�pathlib�Path�exists�logging�warning)�res�servicesr s @r �unload_lve_moduler&