Server IP : 192.158.238.246 / Your IP : 18.222.185.243 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/ |
Upload File : |
� _{�g� � �N � d dl Z d dlZd dlmZmZ ed� � d� � � ZdS )� N)�run�taskzUnloading 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�line�services ��py/clconfigure/lve.py� <genexpr>z/unload_lve_module.<locals>.<listcomp>.<genexpr> s/ �� � � �E�E�D�t���w�'�'�E�E�E�E�E�E� )�any)r r �res_stdout_liness @�r � <listcomp>z%unload_lve_module.<locals>.<listcomp> sN ��� � � � ���E�E�E�E�4D�E�E�E�E�E���� � 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# 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 �clconfigurer r r# � r r �<module>r&