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
13 <refentry id=
"systemd-delta"
14 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
17 <title>systemd-delta
</title>
18 <productname>systemd
</productname>
22 <contrib>Developer
</contrib>
23 <firstname>Lennart
</firstname>
24 <surname>Poettering
</surname>
25 <email>lennart@poettering.net
</email>
31 <refentrytitle>systemd-delta
</refentrytitle>
32 <manvolnum>1</manvolnum>
36 <refname>systemd-delta
</refname>
37 <refpurpose>Find overridden configuration files
</refpurpose>
42 <command>systemd-delta
</command>
43 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
44 <arg choice=
"opt" rep=
"repeat"><replaceable>PREFIX
</replaceable><optional>/
<replaceable>SUFFIX
</replaceable></optional>|
<replaceable>SUFFIX
</replaceable></arg>
49 <title>Description
</title>
51 <para><command>systemd-delta
</command> may be used to identify and
52 compare configuration files that override other configuration
53 files. Files in
<filename>/etc
</filename> have highest priority,
54 files in
<filename>/run
</filename> have the second highest
55 priority, …, files in
<filename>/usr/lib
</filename> have lowest
56 priority. Files in a directory with higher priority override files
57 with the same name in directories of lower priority. In addition,
58 certain configuration files can have
<literal>.d
</literal>
59 directories which contain
"drop-in" files with configuration
60 snippets which augment the main configuration file.
"Drop-in"
61 files can be overridden in the same way by placing files with the
62 same name in a directory of higher priority (except that, in case
63 of
"drop-in" files, both the
"drop-in" file name and the name of
64 the containing directory, which corresponds to the name of the
65 main configuration file, must match). For a fuller explanation,
67 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
70 <para>The command line argument will be split into a prefix and a
71 suffix. Either is optional. The prefix must be one of the
72 directories containing configuration files
73 (
<filename>/etc
</filename>,
<filename>/run
</filename>,
74 <filename>/usr/lib
</filename>, …). If it is given, only
75 overriding files contained in this directory will be shown.
76 Otherwise, all overriding files will be shown. The suffix must be
77 a name of a subdirectory containing configuration files like
78 <filename>tmpfiles.d
</filename>,
<filename>sysctl.d
</filename> or
79 <filename>systemd/system
</filename>. If it is given, only
80 configuration files in this subdirectory (across all configuration
81 paths) will be analyzed. Otherwise, all configuration files will
82 be analyzed. If the command line argument is not given at all, all
83 configuration files will be analyzed. See below for some
88 <title>Options
</title>
90 <para>The following options are understood:
</para>
94 <term><option>-t
</option></term>
95 <term><option>--type=
</option></term>
97 <listitem><para>When listing the differences, only list those
98 that are asked for. The list itself is a comma-separated list
99 of desired difference types.
</para>
101 <para>Recognized types are:
105 <term><varname>masked
</varname></term>
107 <listitem><para>Show masked files
</para></listitem>
111 <term><varname>equivalent
</varname></term>
113 <listitem><para>Show overridden files that while
114 overridden, do not differ in content.
</para></listitem>
118 <term><varname>redirected
</varname></term>
120 <listitem><para>Show files that are redirected to
121 another.
</para></listitem>
125 <term><varname>overridden
</varname></term>
127 <listitem><para>Show overridden, and changed
128 files.
</para></listitem>
132 <term><varname>extended
</varname></term>
134 <listitem><para>Show
<filename>*.conf
</filename> files
135 in drop-in directories for units.
</para></listitem>
139 <term><varname>unchanged
</varname></term>
141 <listitem><para>Show unmodified files
142 too.
</para></listitem>
149 <term><option>--diff=
</option></term>
151 <listitem><para>When showing modified files, when a file is
152 overridden show a diff as well. This option takes a boolean
153 argument. If omitted, it defaults to
154 <option>true
</option>.
</para></listitem>
157 <xi:include href=
"standard-options.xml" xpointer=
"help" />
158 <xi:include href=
"standard-options.xml" xpointer=
"version" />
159 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
164 <title>Examples
</title>
166 <para>To see all local configuration:
</para>
167 <programlisting>systemd-delta
</programlisting>
169 <para>To see all runtime configuration:
</para>
170 <programlisting>systemd-delta /run
</programlisting>
172 <para>To see all system unit configuration changes:
</para>
173 <programlisting>systemd-delta systemd/system
</programlisting>
175 <para>To see all runtime
"drop-in" changes for system units:
</para>
176 <programlisting>systemd-delta --type=extended /run/systemd/system
</programlisting>
180 <title>Exit status
</title>
182 <para>On success,
0 is returned, a non-zero failure code
187 <title>See Also
</title>
189 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
190 <citerefentry><refentrytitle>systemd.unit
</refentrytitle><manvolnum>5</manvolnum></citerefentry>