/opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__
NameSizeModeActions
awp.cpython-311.opt-1.pyc25720644editdlrm
awp.cpython-311.pyc25720644editdlrm
cagefs.cpython-311.opt-1.pyc32120644editdlrm
cagefs.cpython-311.pyc32120644editdlrm
clpro.cpython-311.opt-1.pyc13670644editdlrm
clpro.cpython-311.pyc13670644editdlrm
files.cpython-311.opt-1.pyc15500644editdlrm
files.cpython-311.pyc15500644editdlrm
limits.cpython-311.opt-1.pyc46660644editdlrm
limits.cpython-311.pyc46660644editdlrm
linksafe.cpython-311.opt-1.pyc21060644editdlrm
linksafe.cpython-311.pyc21060644editdlrm
lve.cpython-311.opt-1.pyc20260644editdlrm
lve.cpython-311.pyc20260644editdlrm
packages.cpython-311.opt-1.pyc38810644editdlrm
packages.cpython-311.pyc38810644editdlrm
services.cpython-311.opt-1.pyc27770644editdlrm
services.cpython-311.pyc27770644editdlrm
watcher.cpython-311.opt-1.pyc62320644editdlrm
watcher.cpython-311.pyc62810644editdlrm
__init__.cpython-311.opt-1.pyc53690644editdlrm
__init__.cpython-311.pyc54180644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/limits.cpython-311.pyc (4666B)
ܨf3 ddlmZddlZddlZddlmZmZddlmZddl m Z m Z m Z m Z mZmZmZmZmZmZdZeddZd Zd Zed d Zd ZdS))absolute_importN)runtask)install_package) STATE_FAILED STATE_MASKED STATE_RUNNING STATE_STOPPEDSTATE_UNMASKEDSTATUS_RUNNING STATE_ENABLEDSTATE_DISABLEDget_service_stateset_service_statecDtddtdS)Nz lve-statsT) reinstall)renable_lve_servicespy/clconfigure/limits.pyinitialize_lvestatsrs'K40000rz2Changing default limits state to '{desired_state}'cR|dkrtgddStd)z Brings default limits to given state (unlimited | default). May be executed more that once, does't crash on future calls unlimited)lvectlsetdefaultrz$Another states temporary unavailableN)r RuntimeError) desired_states rset_default_limits_stater!s9  ## 5 5 566666ABBBrc^tttfD]}dD]}t||dS)z, Turn off all lve-related services. lvelve_namespaceslvestatsrN)r rrrstateservices rdisable_lve_servicesr(-sK >..F . .G eW - - - - ...rc^tttfD]}dD]}t||dS)z+ Turn on all lve-related services. r!N)r r r rr%s rrr6sK!-?..F . .G eW - - - - ...rzUnloading lve modulecNtddg}|j|jngfddD}|rtddg|tgd}tjd rt jd dSdS) zO Restart services that still use lve device and unload lve module then lsofz/dev/lveNcLg|]tfdD S)c3BK|]}|VdS)N) startswith).0lr's r z/unload_lve_module...Js/??q||G$$??????r)any)r/r'res_stdout_liness @r z%unload_lve_module..HsN ????.>??? ? ?r)mysqldmariadbhttpd systemctlrestart)modprobez-rfkmodlvez/sys/module/kmodlvez:Failed to unload the lve module. Please reboot the server.)rstdoutsplitpathlibPathexistsloggingwarning)resservicesr3s @runload_lve_modulerE?s vz" # #C-0Z-Csz'')))=H 1 [) /h /000 ,,, - -C|)**1133VTUUUUUVVrctdtkrdSttdttdtt dtt ddS)z Apply workaround for the case When `systemctl stop lve` makes it transition to "failed" state instead of "inactive" r"N)rrrr r r rrrrapply_workaround_lve_failedrGUsb <//ne,,,mU+++mU+++lE*****r) __future__rrAr> clconfigurerrclconfigure.packagesrclconfigure.servicesrrr r r r r rrrrrr(rrErGrrrrLsg '&&&&&!!!!!!!!000000                         :;;CC<;C......VVV* + + + + +r