From 6cee9dd4b39082ec7d5afcb1f4c0b91832e294d9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jun 2023 16:23:45 +0200 Subject: [PATCH] man: document that journalctl --user requires Storage=persistent Fixes: #25061 (cherry picked from commit cad8fa471b9133f38fbd6ddb6ee143f361525e5d) Related: RHEL-31070 --- man/journalctl.xml | 6 +++++- man/journald.conf.xml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/man/journalctl.xml b/man/journalctl.xml index 29d06aaef8..6be628caf8 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -111,7 +111,11 @@ The option affects how arguments are - treated. See . + treated. See . + + Note that only works if persistent logging is enabled, via the + Storage= setting in + journald.conf5. diff --git a/man/journald.conf.xml b/man/journald.conf.xml index 24cee4c8b2..a7c3da6653 100644 --- a/man/journald.conf.xml +++ b/man/journald.conf.xml @@ -95,6 +95,9 @@ /var/log/journal/, as the systemd-journald@.service service file by default carries LogsDirectory=. To turn that off, add a unit file drop-in file that sets LogsDirectory= to an empty string. + + Note that per-user journal files are not supported unless persistent storage is enabled, thus + making journalctl --user unavailable.