mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
cgroup: move PID 1 out of the init/ group
A cgroup holding processes cannot enable controllers for its children, so init/ had to stay a leaf. The hotplug helpers 10-hotplug.conf.in places there ended up in groups where cpu.weight and friends could never be set. Keeping PID 1 in the root cgroup makes init/ a domain like the others. It also unbreaks lxc-based runtimes: liblxc bases the container tree on PID 1's cgroup and only special-cases systemd's init.scope/, so under Finit it landed containers in init/, with no controllers available. Issue #497 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -42,7 +42,9 @@ the above three. We leave `init/` and `user/` as-is reducing weight of
|
||||
cgroup maint { cpu.weight = 100 }
|
||||
|
||||
By default, the `system/` cgroup is selected for almost everything. The
|
||||
`init/` cgroup is reserved for PID 1 itself and its closest relatives.
|
||||
`init/` cgroup is reserved for the early boot helpers Finit drives
|
||||
itself, like udev and mdev. PID 1 runs in the root cgroup, since a
|
||||
cgroup holding processes cannot delegate controllers to its children.
|
||||
The `user/` cgroup is for local TTY logins spawned by getty.
|
||||
|
||||
Joining a Cgroup
|
||||
|
||||
Reference in New Issue
Block a user