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.
This commit is contained in:
William Hubbs 2012-01-23 21:46:33 -06:00
parent 426b94bd69
commit ce4c9b5397

View File

@ -79,6 +79,11 @@ mount_cgroups()
return 0 return 0
fi 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 while read name hier groups enabled rest; do
case "${enabled}" in case "${enabled}" in
1) mkdir /sys/fs/cgroup/${name} 1) mkdir /sys/fs/cgroup/${name}