aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-01-23 21:46:33 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-01-23 21:46:33 -0600
commitce4c9b5397662869a707cd68a373aa751e125a50 (patch)
tree4cce25e994a5e6b0bd55efa35cf12b632a3f8ec6
parent426b94bd696933a72d8623fa1325b3562096957d (diff)
Cgroups: create openrc control group
This creates the "openrc" control group with no subsystems attached. The next step will be to add everything openrc starts to this group.
-rw-r--r--init.d/sysfs.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 7021feb7..37350edd 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -79,6 +79,11 @@ mount_cgroups()
return 0
fi
+ local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
+ mkdir /sys/fs/cgroup/openrc
+ mount -t cgroup \
+ -o none,nodev,noexec,nosuid,name=openrc,release_agent="$agent" \
+ openrc /sys/fs/cgroup/openrc
while read name hier groups enabled rest; do
case "${enabled}" in
1) mkdir /sys/fs/cgroup/${name}