REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1020 B
Close
/proc/thread-self/root/opt/imunify360/venv/share/imunify360/scripts/imunify-disable-cpu-accounting.sh
Text
Base64
#!/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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
migrate_csf
DIR
-
drwxr-xr-x
2026-06-08 20:23:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
check-detached.py
1.11 KB
lrwxr-xr-x
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
create_default_config
1.23 KB
lrwxr-xr-x
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
delay_on_cron_call.py
1.12 KB
lrwxr-xr-x
2026-05-26 21:25:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imunify-check-pkg-integrity
5.84 KB
lrwxr-xr-x
2026-05-26 21:25:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imunify-disable-cpu-accounting.sh
1020 B
lrwxr--r--
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imunify-doctor.sh
26.29 KB
lrwxr--r--
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imunify-force-update.sh
8.15 KB
lrwxr--r--
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
purge-clamav
535 B
lrwxr-xr-x
2026-05-26 21:33:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
send-notifications
7.70 KB
lrwxrwx---
2026-05-26 21:33:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
setup_cagefs.py
4.48 KB
lrwx------
2026-05-26 21:25:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
track-fpfn-submissions.sh
3.80 KB
lrwxr-xr-x
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update_components_versions.py
4.08 KB
lrwxr-xr-x
2026-05-26 21:33:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).