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:
@@ -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}
|
||||||
|
Reference in New Issue
Block a user