ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/cron.cpython-311.pyc |
� �2�f� � � � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z mZmZ dddd �Z d ddd �ZddiZeeeeiZddee fd�Zdefd�Zd� ZdS )� )�absolute_importN)�iglob)�Iterable)�Feature�OBJECT_CACHE_FEATURE�CDN_FEATUREz/usr/share/cloudlinuxz/etc/cron.d/clwpos_req_cronz./etc/cron.d/clwpos_collect_information_cron.py)�CLSHARE�WPOS_REQ_CRON_FILE�CLWPOS_COLLECT_INFORMATION_CRONz,/etc/cron.d/clwpos_redis_extension_installerz/etc/cron.d/clwpos_cleaner_cronz/etc/cron.d/clwpos_billing_cron)� CLWPOS_REDIS_EXTENSION_INSTALLER�CLWPOS_CLEANER_CRON�CLWPOS_BILLING_CRONr F�featuresc � � t | � � } |r t j }nt j }| st j d� � dS t � � � }| D ]I}t � |� � }|��t j d|� � |� |� � �J |dgt j t j |�� � dS )z� This script installs cron files based on the features that are currently enabled. Please note that already installed cron files will not be removed if new list has missing feature against previous one. z9There are no features active, skip installing cron files.Nz+Feature %s is active, installing cron filesz)/usr/share/cloudlinux/add_clwpos_crons.sh)�stdout�stderr�env)�tuple� subprocess�run�Popen�logging�info�_DEFAULT_SCRIPT_ENV�copy�_CRON_ENV_BY_FEATURE�get�update�DEVNULL)r �wait_child_process� exec_func� env_params�feature�feature_envs �B/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwpos/cron.py�install_cron_filesr&