aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rw-r--r--init.d/sysfs.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 962fcfdb..8ba988a0 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -74,10 +74,8 @@ mount_misc()
mount_cgroups()
{
- yesno ${rc_cgroups:-YES} || return 0
- if [ ! -e /proc/cgroups ]; then
- return 0
- fi
+ yesno ${rc_cgroups:-YES} && [ -e /proc/cgroups ] && \
+ mountinfo -q /sys/fs/cgroup || return 0
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
mkdir /sys/fs/cgroup/openrc