diff options
author | William Hubbs <williamh@gentoo.org> | 2012-01-23 21:46:33 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-01-23 21:46:33 -0600 |
commit | ce4c9b5397662869a707cd68a373aa751e125a50 (patch) | |
tree | 4cce25e994a5e6b0bd55efa35cf12b632a3f8ec6 /init.d/sysfs.in | |
parent | 426b94bd696933a72d8623fa1325b3562096957d (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.
Diffstat (limited to 'init.d/sysfs.in')
-rw-r--r-- | init.d/sysfs.in | 5 |
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} |