Cgroups v2 limits are hierarchical - a process is constrained by the most restrictive limit in its ancestor chain, not just its immediate cgroup. This patch updates cg_conf() to walk up the hierarchy and report effective limits by comparing values at each level. This fixes incorrect "max" (unlimited) reporting in 'initctl --json status', 'initctl cgroup', and 'initctl top' when child cgroups have no explicit limits but parents do. For memory.max and cpu.max: take minimum (most restrictive) For memory.min: take maximum (most protection) Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Finit is an alternative to SysV init and systemd, focused on small and embedded Linux systems, although fully usable on server and desktop systems.
Reverse engineered from the EeePC fastinit
"gaps filled with frog DNA …"
— Claudio Matsuoka
For detailed information, explore our extensive documentation
📚 http://finit-project.github.io/finit/
For working examples, see the 🚀 contrib/ section or these tutorials:
- 🛠️ Buildroot embedded Linux,
- 📦 Debian GNU/Linux,
- ⛰️ Alpine Linux, and
- 🌌 Void Linux
Note
Support for various Linux distributions does not mean Finit installs easily on all architectures. Bundled install scripts are examples for standard installations, tested on amd64 (x86_64) systems. Custom setups, e.g., for embedded systems, can be found in the following Buildroot based examples: myLinux, Infix, or the plain br2-finit-demo.

