-
Notifications
You must be signed in to change notification settings - Fork 267
Open
Description
Because of the first line cgroup_running || return 0
which calls out to an erroneous check that will always fail. On cgroups v2 it checks the paths for $RC_SVCNAME
but the actual name is openrc.$RC_SVCNAME
.
diff --git a/sh/rc-cgroup.sh b/sh/rc-cgroup.sh
index f10e328c..631754a0 100644
--- a/sh/rc-cgroup.sh
+++ b/sh/rc-cgroup.sh
@@ -49,8 +49,8 @@ cgroup_get_pids()
cgroup_running()
{
- [ -d "/sys/fs/cgroup/unified/${RC_SVCNAME}" ] ||
- [ -d "/sys/fs/cgroup/${RC_SVCNAME}" ] ||
+ [ -d "/sys/fs/cgroup/unified/openrc.${RC_SVCNAME}" ] ||
+ [ -d "/sys/fs/cgroup/openrc.${RC_SVCNAME}" ] ||
[ -d "/sys/fs/cgroup/openrc/${RC_SVCNAME}" ]
}
Metadata
Metadata
Assignees
Labels
No labels