small chang in how rc.cgroup2unaid is invoked
This commit is contained in:
@@ -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
0
etc/rc.d/rc.cgroup2unraid
Normal file → Executable file
Reference in New Issue
Block a user