mirror of
https://github.com/systemd/systemd.git
synced 2025-01-21 22:04:01 +03:00
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
|
||||
`statfs()` again on `/sys/fs/cgroup/unified/`. If that succeeds and reports
|
||||
`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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user