✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.150
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/imunify360/venv/share/imunify360/scripts//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


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
13 Jul 2026 12.33 PM
root / root
0755
migrate_csf
--
13 Jul 2026 12.33 PM
root / root
0755
check-detached.py
1.114 KB
16 Jun 2026 10.45 AM
root / root
0755
create_default_config
1.233 KB
16 Jun 2026 10.45 AM
root / root
0755
delay_on_cron_call.py
1.122 KB
22 Jun 2026 10.35 PM
root / root
0755
imunify-check-pkg-integrity
6.047 KB
22 Jun 2026 10.35 PM
root / root
0755
imunify-disable-cpu-accounting.sh
0.996 KB
16 Jun 2026 10.45 AM
root / root
0744
imunify-doctor.sh
26.291 KB
16 Jun 2026 10.45 AM
root / root
0744
imunify-force-update.sh
8.149 KB
16 Jun 2026 10.45 AM
root / root
0744
purge-clamav
0.522 KB
16 Jun 2026 10.45 AM
root / root
0755
send-notifications
7.703 KB
16 Jun 2026 10.45 AM
root / _imunify
4770
setup_cagefs.py
4.476 KB
22 Jun 2026 10.35 PM
root / root
0700
track-fpfn-submissions.sh
3.801 KB
16 Jun 2026 10.45 AM
root / root
0755
update_components_versions.py
4.079 KB
16 Jun 2026 10.45 AM
root / root
0755

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF