small chang in how rc.cgroup2unaid is invoked

This commit is contained in:
Tom Mortensen
2024-10-11 02:23:34 -07:00
parent b783d4b207
commit 95c6913c62
2 changed files with 2 additions and 6 deletions

View File

@@ -69,7 +69,8 @@ if /bin/grep -wq cgroup /proc/filesystems; then
# See https://docs.kernel.org/admin-guide/cgroup-v2.html (section Mounting)
# Mount cgroup2 filesystem
/sbin/mount -t cgroup2 -o rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot cgroup2 /sys/fs/cgroup
chmod +x /etc/rc.d/rc.cgroup2unraid
# Start cgroup2 cleanup daemon
/etc/rc.d/rc.cgroup2unraid start
else
# Display message if /sys/fs/cgroup does not exist
echo "/sys/fs/cgroup does not exist. cgroup2 cannot be mounted."
@@ -160,11 +161,6 @@ if [[ -x /etc/rc.d/rc.cgconfig && -x /etc/rc.d/rc.cgred && -d /sys/fs/cgroup ]];
/etc/rc.d/rc.cgred start
fi
# Start cgroup2 cleanup daemon
if [[ -x /etc/rc.d/rc.cgroup2unraid && -d /sys/fs/cgroup ]]; then
/etc/rc.d/rc.cgroup2unraid start
fi
# Create /tmp/{.ICE-unix,.X11-unix} if they are not present:
if [[ ! -e /tmp/.ICE-unix ]]; then
/bin/mkdir -p /tmp/.ICE-unix

0
etc/rc.d/rc.cgroup2unraid Normal file → Executable file
View File