From ce4c9b5397662869a707cd68a373aa751e125a50 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 23 Jan 2012 21:46:33 -0600 Subject: [PATCH] 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. --- init.d/sysfs.in | 5 +++++ 1 file changed, 5 insertions(+) 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}