pub fn read_cgroups(root: &Path) -> (BTreeMap<u64, UnitId>, BTreeSet<String>)
cgroup id (the cgroup directory’s inode) → unit, for every service cgroup under root (/sys/fs/cgroup), and the running services’ names.
root
/sys/fs/cgroup