This commit is contained in:
Lennart Poettering 2019-11-27 21:38:07 +01:00
parent efcbcd0d04
commit 6bc4361997
2 changed files with 25 additions and 27 deletions

View file

@ -18,6 +18,7 @@
<refnamediv> <refnamediv>
<refname>journald.conf</refname> <refname>journald.conf</refname>
<refname>journald.conf.d</refname> <refname>journald.conf.d</refname>
<refname>journald@.conf</refname>
<refpurpose>Journal service configuration files</refpurpose> <refpurpose>Journal service configuration files</refpurpose>
</refnamediv> </refnamediv>
@ -26,6 +27,7 @@
<para><filename>/etc/systemd/journald.conf.d/*.conf</filename></para> <para><filename>/etc/systemd/journald.conf.d/*.conf</filename></para>
<para><filename>/run/systemd/journald.conf.d/*.conf</filename></para> <para><filename>/run/systemd/journald.conf.d/*.conf</filename></para>
<para><filename>/usr/lib/systemd/journald.conf.d/*.conf</filename></para> <para><filename>/usr/lib/systemd/journald.conf.d/*.conf</filename></para>
<para><filename>/etc/systemd/journald@<replaceable>NAMESPACE</replaceable>.conf</filename></para>
</refsynopsisdiv> </refsynopsisdiv>
<refsect1> <refsect1>
@ -37,6 +39,12 @@
<citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry> <citerefentry><refentrytitle>systemd.syntax</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for a general description of the syntax.</para> for a general description of the syntax.</para>
<para>The <command>systemd-journald</command> instance managing the default namespace is configured by
<filename>/etc/systemd/journald.conf</filename> and associated drop-ins. Instances managing other
namespaces read <filename>/etc/systemd/journald@<replaceable>NAMESPACE</replaceable>.conf</filename> with
the namespace identifier filled in. This allows each namespace to carry a distinct configuration. See
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details about journal namespaces.</para>
</refsect1> </refsect1>
<xi:include href="standard-conf.xml" xpointer="main-conf" /> <xi:include href="standard-conf.xml" xpointer="main-conf" />
@ -52,29 +60,19 @@
<varlistentry> <varlistentry>
<term><varname>Storage=</varname></term> <term><varname>Storage=</varname></term>
<listitem><para>Controls where to store journal data. One of <listitem><para>Controls where to store journal data. One of <literal>volatile</literal>,
<literal>volatile</literal>, <literal>persistent</literal>, <literal>auto</literal> and <literal>none</literal>. If
<literal>persistent</literal>, <literal>volatile</literal>, journal log data will be stored only in memory, i.e. below the
<literal>auto</literal> and <filename>/run/log/journal</filename> hierarchy (which is created if needed). If
<literal>none</literal>. If <literal>persistent</literal>, data will be stored preferably on disk, i.e. below the
<literal>volatile</literal>, journal <filename>/var/log/journal</filename> hierarchy (which is created if needed), with a fallback to
log data will be stored only in memory, i.e. below the <filename>/run/log/journal</filename> (which is created if needed), during early boot and if the disk
<filename>/run/log/journal</filename> hierarchy (which is is not writable. <literal>auto</literal> is similar to <literal>persistent</literal> but the
created if needed). If <literal>persistent</literal>, data directory <filename>/var/log/journal</filename> is not created if needed, so that its existence
will be stored preferably on disk, i.e. below the controls where log data goes. <literal>none</literal> turns off all storage, all log data received
<filename>/var/log/journal</filename> hierarchy (which is will be dropped. Forwarding to other targets, such as the console, the kernel log buffer, or a syslog
created if needed), with a fallback to socket will still work however. Defaults to <literal>auto</literal> in the default journal namespace,
<filename>/run/log/journal</filename> (which is created if and <literal>persistent</literal> in all others.</para></listitem>
needed), during early boot and if the disk is not writable.
<literal>auto</literal> is similar to
<literal>persistent</literal> but the directory
<filename>/var/log/journal</filename> is not created if
needed, so that its existence controls where log data goes.
<literal>none</literal> turns off all storage, all log data
received will be dropped. Forwarding to other targets, such as
the console, the kernel log buffer, or a syslog socket will
still work however. Defaults to
<literal>auto</literal>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
@ -399,9 +397,9 @@
<varlistentry> <varlistentry>
<term><varname>ReadKMsg=</varname></term> <term><varname>ReadKMsg=</varname></term>
<listitem><para>Takes a boolean value. If enabled (the <listitem><para>Takes a boolean value. If enabled <command>systemd-journal</command> processes
default), journal reads <filename>/dev/kmsg</filename> <filename>/dev/kmsg</filename> messages generated by the kernel. In the default journal namespace
messages generated by the kernel.</para></listitem> this option is enabled by default, it is disabled in all others.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>

View file

@ -24,7 +24,7 @@ manpages = [
['journal-remote.conf', '5', ['journal-remote.conf.d'], 'HAVE_MICROHTTPD'], ['journal-remote.conf', '5', ['journal-remote.conf.d'], 'HAVE_MICROHTTPD'],
['journal-upload.conf', '5', ['journal-upload.conf.d'], 'HAVE_MICROHTTPD'], ['journal-upload.conf', '5', ['journal-upload.conf.d'], 'HAVE_MICROHTTPD'],
['journalctl', '1', [], ''], ['journalctl', '1', [], ''],
['journald.conf', '5', ['journald.conf.d'], ''], ['journald.conf', '5', ['journald.conf.d', 'journald@.conf'], ''],
['kernel-command-line', '7', [], ''], ['kernel-command-line', '7', [], ''],
['kernel-install', '8', [], ''], ['kernel-install', '8', [], ''],
['libudev', '3', [], ''], ['libudev', '3', [], ''],