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 This file is part of systemd.
10 Copyright 2012 Lennart Poettering
12 systemd is free software; you can redistribute it and/or modify it
13 under the terms of the GNU Lesser General Public License as published by
14 the Free Software Foundation; either version 2.1 of the License, or
15 (at your option) any later version.
17 systemd is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public License
23 along with systemd; If not, see <http://www.gnu.org/licenses/>.
26 <refentry id=
"systemd-delta"
27 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
30 <title>systemd-delta
</title>
31 <productname>systemd
</productname>
35 <contrib>Developer
</contrib>
36 <firstname>Lennart
</firstname>
37 <surname>Poettering
</surname>
38 <email>lennart@poettering.net
</email>
44 <refentrytitle>systemd-delta
</refentrytitle>
45 <manvolnum>1</manvolnum>
49 <refname>systemd-delta
</refname>
50 <refpurpose>Find overridden configuration files
</refpurpose>
55 <command>systemd-delta
</command>
56 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
57 <arg choice=
"opt" rep=
"repeat"><replaceable>PREFIX
</replaceable><optional>/
<replaceable>SUFFIX
</replaceable></optional>|
<replaceable>SUFFIX
</replaceable></arg>
62 <title>Description
</title>
64 <para><command>systemd-delta
</command> may be used to identify and
65 compare configuration files that override other configuration
66 files. Files in
<filename>/etc
</filename> have highest priority,
67 files in
<filename>/run
</filename> have the second highest
68 priority, …, files in
<filename>/usr/lib
</filename> have lowest
69 priority. Files in a directory with higher priority override files
70 with the same name in directories of lower priority. In addition,
71 certain configuration files can have
<literal>.d
</literal>
72 directories which contain
"drop-in" files with configuration
73 snippets which augment the main configuration file.
"Drop-in"
74 files can be overridden in the same way by placing files with the
75 same name in a directory of higher priority (except that, in case
76 of
"drop-in" files, both the
"drop-in" file name and the name of
77 the containing directory, which corresponds to the name of the
78 main configuration file, must match). For a fuller explanation,
80 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
83 <para>The command line argument will be split into a prefix and a
84 suffix. Either is optional. The prefix must be one of the
85 directories containing configuration files
86 (
<filename>/etc
</filename>,
<filename>/run
</filename>,
87 <filename>/usr/lib
</filename>, …). If it is given, only
88 overriding files contained in this directory will be shown.
89 Otherwise, all overriding files will be shown. The suffix must be
90 a name of a subdirectory containing configuration files like
91 <filename>tmpfiles.d
</filename>,
<filename>sysctl.d
</filename> or
92 <filename>systemd/system
</filename>. If it is given, only
93 configuration files in this subdirectory (across all configuration
94 paths) will be analyzed. Otherwise, all configuration files will
95 be analyzed. If the command line argument is not given at all, all
96 configuration files will be analyzed. See below for some
101 <title>Options
</title>
103 <para>The following options are understood:
</para>
107 <term><option>-t
</option></term>
108 <term><option>--type=
</option></term>
110 <listitem><para>When listing the differences, only list those
111 that are asked for. The list itself is a comma-separated list
112 of desired difference types.
</para>
114 <para>Recognized types are:
118 <term><varname>masked
</varname></term>
120 <listitem><para>Show masked files
</para></listitem>
124 <term><varname>equivalent
</varname></term>
126 <listitem><para>Show overridden files that while
127 overridden, do not differ in content.
</para></listitem>
131 <term><varname>redirected
</varname></term>
133 <listitem><para>Show files that are redirected to
134 another.
</para></listitem>
138 <term><varname>overridden
</varname></term>
140 <listitem><para>Show overridden, and changed
141 files.
</para></listitem>
145 <term><varname>extended
</varname></term>
147 <listitem><para>Show
<filename>*.conf
</filename> files
148 in drop-in directories for units.
</para></listitem>
152 <term><varname>unchanged
</varname></term>
154 <listitem><para>Show unmodified files
155 too.
</para></listitem>
162 <term><option>--diff=
</option></term>
164 <listitem><para>When showing modified files, when a file is
165 overridden show a diff as well. This option takes a boolean
166 argument. If omitted, it defaults to
167 <option>true
</option>.
</para></listitem>
170 <xi:include href=
"standard-options.xml" xpointer=
"help" />
171 <xi:include href=
"standard-options.xml" xpointer=
"version" />
172 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
177 <title>Examples
</title>
179 <para>To see all local configuration:
</para>
180 <programlisting>systemd-delta
</programlisting>
182 <para>To see all runtime configuration:
</para>
183 <programlisting>systemd-delta /run
</programlisting>
185 <para>To see all system unit configuration changes:
</para>
186 <programlisting>systemd-delta systemd/system
</programlisting>
188 <para>To see all runtime
"drop-in" changes for system units:
</para>
189 <programlisting>systemd-delta --type=extended /run/systemd/system
</programlisting>
193 <title>Exit status
</title>
195 <para>On success,
0 is returned, a non-zero failure code
200 <title>See Also
</title>
202 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
203 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>