ACIL FM
Dark
Refresh
Current DIR:
/opt/imunify360/venv/share/imunify360/scripts
/
opt
imunify360
venv
share
imunify360
scripts
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
migrate_csf
-
chmod
Open
Rename
Delete
check-detached.py
1.11 MB
chmod
View
DL
Edit
Rename
Delete
create_default_config
1.23 MB
chmod
View
DL
Edit
Rename
Delete
delay_on_cron_call.py
1.12 MB
chmod
View
DL
Edit
Rename
Delete
imunify-disable-cpu-accounting.sh
1 MB
chmod
View
DL
Edit
Rename
Delete
imunify-doctor.sh
17.29 MB
chmod
View
DL
Edit
Rename
Delete
imunify-force-update.sh
3.4 MB
chmod
View
DL
Edit
Rename
Delete
purge-clamav
539 B
chmod
View
DL
Edit
Rename
Delete
send-notifications
15.07 MB
chmod
View
DL
Edit
Rename
Delete
setup_cagefs.py
4.48 MB
chmod
View
DL
Edit
Rename
Delete
track-fpfn-submissions.sh
3.8 MB
chmod
View
DL
Edit
Rename
Delete
update_components_versions.py
4.08 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/imunify360/venv/share/imunify360/scripts/imunify-disable-cpu-accounting.sh
#!/usr/bin/bash # Disable CPU accounting for all services in Imunify slice # some clients had issues with CPU accounting, so we provide this script to disable it # see enable-cgroup-accounting.sh in unified-access-logger repo for more details UNIT_DIR="/etc/systemd/system" # Function to create the override file for a systemd unit create_override() { local unit_name="$1" local override_path="$UNIT_DIR/$unit_name.d/override.conf" # Create the directory for the override file mkdir -p "$UNIT_DIR/$unit_name.d" # Create the override.conf file tee "$override_path" > /dev/null <<EOF [Service] CPUAccounting=false EOF echo "Override created for $unit_name" } # Get all of systemd services services=$(systemctl list-units --type=service --all --no-pager --no-legend | awk '{print $1}') for service in $services; do if systemctl show --property=Slice "$service" | grep "Slice=Imunify"; then echo "CPUAccounting disabled for $service" create_override "$service" fi done systemctl daemon-reload
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply