1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
8 Copyright 2012 Lennart Poettering
11 <refentry id=
"systemd-delta"
12 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
15 <title>systemd-delta
</title>
16 <productname>systemd
</productname>
20 <contrib>Developer
</contrib>
21 <firstname>Lennart
</firstname>
22 <surname>Poettering
</surname>
23 <email>lennart@poettering.net
</email>
29 <refentrytitle>systemd-delta
</refentrytitle>
30 <manvolnum>1</manvolnum>
34 <refname>systemd-delta
</refname>
35 <refpurpose>Find overridden configuration files
</refpurpose>
40 <command>systemd-delta
</command>
41 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
42 <arg choice=
"opt" rep=
"repeat"><replaceable>PREFIX
</replaceable><optional>/
<replaceable>SUFFIX
</replaceable></optional>|
<replaceable>SUFFIX
</replaceable></arg>
47 <title>Description
</title>
49 <para><command>systemd-delta
</command> may be used to identify and
50 compare configuration files that override other configuration
51 files. Files in
<filename>/etc
</filename> have highest priority,
52 files in
<filename>/run
</filename> have the second highest
53 priority, …, files in
<filename>/usr/lib
</filename> have lowest
54 priority. Files in a directory with higher priority override files
55 with the same name in directories of lower priority. In addition,
56 certain configuration files can have
<literal>.d
</literal>
57 directories which contain
"drop-in" files with configuration
58 snippets which augment the main configuration file.
"Drop-in"
59 files can be overridden in the same way by placing files with the
60 same name in a directory of higher priority (except that, in case
61 of
"drop-in" files, both the
"drop-in" file name and the name of
62 the containing directory, which corresponds to the name of the
63 main configuration file, must match). For a fuller explanation,
65 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
68 <para>The command line argument will be split into a prefix and a
69 suffix. Either is optional. The prefix must be one of the
70 directories containing configuration files
71 (
<filename>/etc
</filename>,
<filename>/run
</filename>,
72 <filename>/usr/lib
</filename>, …). If it is given, only
73 overriding files contained in this directory will be shown.
74 Otherwise, all overriding files will be shown. The suffix must be
75 a name of a subdirectory containing configuration files like
76 <filename>tmpfiles.d
</filename>,
<filename>sysctl.d
</filename> or
77 <filename>systemd/system
</filename>. If it is given, only
78 configuration files in this subdirectory (across all configuration
79 paths) will be analyzed. Otherwise, all configuration files will
80 be analyzed. If the command line argument is not given at all, all
81 configuration files will be analyzed. See below for some
86 <title>Options
</title>
88 <para>The following options are understood:
</para>
92 <term><option>-t
</option></term>
93 <term><option>--type=
</option></term>
95 <listitem><para>When listing the differences, only list those
96 that are asked for. The list itself is a comma-separated list
97 of desired difference types.
</para>
99 <para>Recognized types are:
103 <term><varname>masked
</varname></term>
105 <listitem><para>Show masked files
</para></listitem>
109 <term><varname>equivalent
</varname></term>
111 <listitem><para>Show overridden files that while
112 overridden, do not differ in content.
</para></listitem>
116 <term><varname>redirected
</varname></term>
118 <listitem><para>Show files that are redirected to
119 another.
</para></listitem>
123 <term><varname>overridden
</varname></term>
125 <listitem><para>Show overridden, and changed
126 files.
</para></listitem>
130 <term><varname>extended
</varname></term>
132 <listitem><para>Show
<filename>*.conf
</filename> files
133 in drop-in directories for units.
</para></listitem>
137 <term><varname>unchanged
</varname></term>
139 <listitem><para>Show unmodified files
140 too.
</para></listitem>
147 <term><option>--diff=
</option></term>
149 <listitem><para>When showing modified files, when a file is
150 overridden show a diff as well. This option takes a boolean
151 argument. If omitted, it defaults to
152 <option>true
</option>.
</para></listitem>
155 <xi:include href=
"standard-options.xml" xpointer=
"help" />
156 <xi:include href=
"standard-options.xml" xpointer=
"version" />
157 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
162 <title>Examples
</title>
164 <para>To see all local configuration:
</para>
165 <programlisting>systemd-delta
</programlisting>
167 <para>To see all runtime configuration:
</para>
168 <programlisting>systemd-delta /run
</programlisting>
170 <para>To see all system unit configuration changes:
</para>
171 <programlisting>systemd-delta systemd/system
</programlisting>
173 <para>To see all runtime
"drop-in" changes for system units:
</para>
174 <programlisting>systemd-delta --type=extended /run/systemd/system
</programlisting>
178 <title>Exit status
</title>
180 <para>On success,
0 is returned, a non-zero failure code
185 <title>See Also
</title>
187 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
188 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>