| 1 |
<?xml version='1.0'?> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refentry id="pstore.conf" conditional="ENABLE_PSTORE" |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
<refentryinfo> |
| 9 |
<title>pstore.conf</title> |
| 10 |
<productname>systemd</productname> |
| 11 |
</refentryinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>pstore.conf</refentrytitle> |
| 15 |
<manvolnum>5</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>pstore.conf</refname> |
| 20 |
<refname>pstore.conf.d</refname> |
| 21 |
<refpurpose>PStore configuration file</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<para><simplelist> |
| 26 |
<member><filename>/etc/systemd/pstore.conf</filename></member> |
| 27 |
<member><filename>/run/systemd/pstore.conf</filename></member> |
| 28 |
<member><filename>/usr/local/lib/systemd/pstore.conf</filename></member> |
| 29 |
<member><filename>/usr/lib/systemd/pstore.conf</filename></member> |
| 30 |
<member><filename>/etc/systemd/pstore.conf.d/*.conf</filename></member> |
| 31 |
<member><filename>/run/systemd/pstore.conf.d/*.conf</filename></member> |
| 32 |
<member><filename>/usr/local/lib/systemd/pstore.conf.d/*.conf</filename></member> |
| 33 |
<member><filename>/usr/lib/systemd/pstore.conf.d/*.conf</filename></member> |
| 34 |
</simplelist></para> |
| 35 |
</refsynopsisdiv> |
| 36 |
|
| 37 |
<refsect1> |
| 38 |
<title>Description</title> |
| 39 |
|
| 40 |
<para>This file configures the behavior of |
| 41 |
<citerefentry><refentrytitle>systemd-pstore</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
| 42 |
a tool for archiving the contents of the persistent storage filesystem, |
| 43 |
<ulink url="https://docs.kernel.org/admin-guide/abi-testing.html#abi-sys-fs-pstore">pstore</ulink>. |
| 44 |
</para> |
| 45 |
</refsect1> |
| 46 |
|
| 47 |
<xi:include href="standard-conf.xml" xpointer="main-conf" /> |
| 48 |
|
| 49 |
<refsect1> |
| 50 |
<title>Options</title> |
| 51 |
|
| 52 |
<para>All options are configured in the |
| 53 |
[PStore] section:</para> |
| 54 |
|
| 55 |
<variablelist class='config-directives'> |
| 56 |
|
| 57 |
<varlistentry> |
| 58 |
<term><varname>Storage=</varname></term> |
| 59 |
|
| 60 |
<listitem><para>Controls where to archive (i.e. copy) files from the pstore filesystem. One of <literal>none</literal>, |
| 61 |
<literal>external</literal>, and <literal>journal</literal>. When |
| 62 |
<literal>none</literal>, the tool exits without processing files in the pstore filesystem. |
| 63 |
When <literal>external</literal> (the default), files are archived into <filename>/var/lib/systemd/pstore/</filename>, |
| 64 |
and logged into the journal. |
| 65 |
When <literal>journal</literal>, pstore file contents are logged only in the journal.</para> |
| 66 |
|
| 67 |
<xi:include href="version-info.xml" xpointer="v243"/> |
| 68 |
</listitem> |
| 69 |
|
| 70 |
</varlistentry> |
| 71 |
|
| 72 |
<varlistentry> |
| 73 |
<term><varname>Unlink=</varname></term> |
| 74 |
|
| 75 |
<listitem><para>Controls whether or not files are removed from pstore after processing. |
| 76 |
Takes a boolean value. When true, a pstore file is removed from the pstore once it has been |
| 77 |
archived (either to disk or into the journal). When false, processing of pstore files occurs |
| 78 |
normally, but the files remain in the pstore. |
| 79 |
The default is true in order to maintain the pstore in a nearly empty state, so that the pstore |
| 80 |
has storage available for the next kernel error event. |
| 81 |
</para> |
| 82 |
|
| 83 |
<xi:include href="version-info.xml" xpointer="v243"/></listitem> |
| 84 |
</varlistentry> |
| 85 |
</variablelist> |
| 86 |
|
| 87 |
<para>Use <programlisting>systemd-analyze cat-config systemd/pstore.conf</programlisting> |
| 88 |
to display the full config.</para> |
| 89 |
</refsect1> |
| 90 |
|
| 91 |
<refsect1> |
| 92 |
<title>See Also</title> |
| 93 |
<para><simplelist type="inline"> |
| 94 |
<member><citerefentry><refentrytitle>systemd-pstore.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 95 |
</simplelist></para> |
| 96 |
</refsect1> |
| 97 |
|
| 98 |
</refentry> |