Skip to content

Commit

Permalink
man: document that journalctl --user requires Storage=persistent
Browse files Browse the repository at this point in the history
Fixes: #25061
(cherry picked from commit cad8fa4)

Related: RHEL-31070
  • Loading branch information
poettering authored and dtardon committed Apr 9, 2024
1 parent 620b730 commit 3c5a1ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion man/journalctl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@
</para>

<para>The <option>--user</option> option affects how <option>--unit=</option> arguments are
treated. See <option>--unit=</option>.</para></listitem>
treated. See <option>--unit=</option>.</para>

<para>Note that <option>--user</option> only works if persistent logging is enabled, via the
<varname>Storage=</varname> setting in
<citerefentry><refentrytitle>journald.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
</varlistentry>

<varlistentry>
Expand Down
3 changes: 3 additions & 0 deletions man/journald.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
<filename>/var/log/journal/</filename>, as the <filename>systemd-journald@.service</filename> service
file by default carries <varname>LogsDirectory=</varname>. To turn that off, add a unit file drop-in
file that sets <varname>LogsDirectory=</varname> to an empty string.</para>

<para>Note that per-user journal files are not supported unless persistent storage is enabled, thus
making <command>journalctl --user</command> unavailable.</para>
</listitem>
</varlistentry>

Expand Down

0 comments on commit 3c5a1ca

Please sign in to comment.