| Server IP : 172.67.178.83 / Your IP : 216.73.217.141 Web Server : Apache System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64 User : corbizre ( 1013) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/criu-lve/ |
Upload File : |
#!/bin/bash
#
# Create httpd systemd override for CRIU compatibility.
# Called from criu.service ExecStartPre on first start.
# On CL10+ this relaxes sandboxing that blocks checkpoint/restore;
# on CL7-CL9 these directives are harmless no-ops (the defaults
# are already "no" when not set in the service file).
#
OVERRIDE_DIR="/etc/systemd/system/httpd.service.d"
OVERRIDE_FILE="${OVERRIDE_DIR}/cloudlinux-criu-override.conf"
if [ -f "$OVERRIDE_FILE" ]; then
exit 0
fi
mkdir -p "$OVERRIDE_DIR"
cat > "$OVERRIDE_FILE" << 'EOF'
[Service]
# CRIU checkpoint/restore needs access to kernel module paths, kernel logs,
# kernel tunables, and writable system directories.
ProtectKernelModules=no
ProtectKernelLogs=no
ProtectKernelTunables=no
ProtectSystem=no
EOF
systemctl daemon-reload