HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/lve.cpython-311.pyc
�

�ʘf��b�ddlZddlZddlmZmZddlmZmZmZed��d���Z	dS)�N)�run�task)�
STATE_STOPPED�
STATE_RUNNING�set_service_statezUnloading lve modulec�N��tddg��}|j�|j���ng��fd�dD��}|rtddg|���tgd���}tjd	�����rt
jd
��dSdS)zO
    Restart services that still use lve device and unload lve module then
    �lsofz/dev/lveNc�L���g|]�t�fd��D�������� S)c3�B�K�|]}|����V��dS)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�servicesrs  @r�unload_lve_moduler&
s�����v�z�"�
#�
#�C�-0�Z�-C�s�z�'�'�)�)�)�������=����H�
�1��[�)�/�h�/�0�0�0�

�,�,�,�
-�
-�C��|�)�*�*�1�1�3�3�V���T�U�U�U�U�U�V�Vr)
r"r�clconfigurerr�clconfigure.servicesrrrr&�rr�<module>r*s�����������!�!�!�!�!�!�!�!�P�P�P�P�P�P�P�P�P�P������V�V���V�V�Vr