aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/rc.conf.Linux6
-rw-r--r--init.d/sysfs.in1
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.conf.Linux b/etc/rc.conf.Linux
index 9b5859a0..e149a2c4 100644
--- a/etc/rc.conf.Linux
+++ b/etc/rc.conf.Linux
@@ -22,3 +22,9 @@ rc_sys="@RC_SYS_DEFAULT@"
# consolefont, numlock, etc ...)
rc_tty_number=12
+# openrc can set up linux control groups the way the documentation in
+# the kernel recommends creating them.
+# Currently, this option is disabled by default, but it will be enabled
+# in the future, so if you would like to see how control groups will be
+# created, uncomment this line.
+#rc_cgroups="YES"
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 88382135..a709e5d9 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -64,6 +64,7 @@ mount_misc()
mount_cgroups()
{
+ yesno ${rc_cgroups:-NO} || return 0
if [ ! -e /proc/cgroups ]; then
return 0
fi