Explain how to determine hierarchy type from shell
This makes it easier for people than just recommending the syscall.
This commit is contained in:
parent
76fb53c94a
commit
ed1de7108e
|
@ -131,6 +131,8 @@ If you wonder how to detect which of these three modes is currently used, use
|
||||||
you are either in legacy or hybrid mode. To distinguish these two cases, run
|
you are either in legacy or hybrid mode. To distinguish these two cases, run
|
||||||
`statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports
|
`statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports
|
||||||
`CGROUP2_SUPER_MAGIC` you are in hybrid mode, otherwise not.
|
`CGROUP2_SUPER_MAGIC` you are in hybrid mode, otherwise not.
|
||||||
|
From a shell, you can use check the `Type` in `stat -f /sys/fs/cgroup` and
|
||||||
|
`stat -f /sys/fs/cgroup/unified`.
|
||||||
|
|
||||||
## systemd's Unit Types
|
## systemd's Unit Types
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue