summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Mayer <florian.mayer@bitsrc.org>2020-07-10 18:40:36 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-10 18:52:22 +0200
commited1de7108e9122520f9328236df5b59a53a8c0d6 (patch)
tree4569c35344b5c69dfd0c7f53a4f0c2865249b1de
parent76fb53c94a585a9552e1ed0ff8f5295c7073efeb (diff)
downloadsystemd-ed1de7108e9122520f9328236df5b59a53a8c0d6.tar.gz
Explain how to determine hierarchy type from shell
This makes it easier for people than just recommending the syscall.
-rw-r--r--docs/CGROUP_DELEGATION.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/CGROUP_DELEGATION.md b/docs/CGROUP_DELEGATION.md
index d05503bc97..4011f09322 100644
--- a/docs/CGROUP_DELEGATION.md
+++ b/docs/CGROUP_DELEGATION.md
@@ -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