Lines 100-113
mount_misc()
Link Here
|
100 |
mount_cgroups() |
100 |
mount_cgroups() |
101 |
{ |
101 |
{ |
102 |
mountinfo -q /sys/fs/cgroup || return 0 |
102 |
mountinfo -q /sys/fs/cgroup || return 0 |
103 |
mountinfo -q /sys/fs/cgroup/openrc || return 0 |
103 |
|
104 |
|
104 |
if ! mountinfo -q /sys/fs/cgroup/openrc; then |
105 |
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh" |
105 |
local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh" |
106 |
mkdir /sys/fs/cgroup/openrc |
106 |
mkdir /sys/fs/cgroup/openrc |
107 |
mount -n -t cgroup \ |
107 |
mount -n -t cgroup \ |
108 |
-o none,${sysfs_opts},name=openrc,release_agent="$agent" \ |
108 |
-o none,${sysfs_opts},name=openrc,release_agent="$agent" \ |
109 |
openrc /sys/fs/cgroup/openrc |
109 |
openrc /sys/fs/cgroup/openrc |
110 |
echo 1 > /sys/fs/cgroup/openrc/notify_on_release |
110 |
echo 1 > /sys/fs/cgroup/openrc/notify_on_release |
|
|
111 |
fi |
111 |
|
112 |
|
112 |
yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0 |
113 |
yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0 |
113 |
while read name hier groups enabled rest; do |
114 |
while read name hier groups enabled rest; do |
114 |
- |
|
|