]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-delta.xml
systemd-delta: add support for drop-in snippets
[thirdparty/systemd.git] / man / systemd-delta.xml
CommitLineData
7e8d5761
LP
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">
4
5<!--
6 This file is part of systemd.
7
8 Copyright 2012 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22-->
23
24<refentry id="systemd-delta">
25
26 <refentryinfo>
27 <title>systemd-delta</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>systemd-delta</refentrytitle>
42 <manvolnum>1</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>systemd-delta</refname>
47 <refpurpose>Find overridden configuration files</refpurpose>
48 </refnamediv>
49
50 <refsynopsisdiv>
51 <cmdsynopsis>
52 <command>systemd-delta <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">SUFFIX</arg></command>
53 </cmdsynopsis>
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para><command>systemd-delta</command> may be used to
60 identify and compare configuration files in
61 <filename>/etc</filename> that override default
62 counterparts in <filename>/usr</filename>. The command
63 line argument can be one or more name of a subdirectories of
64 <filename>/etc</filename> or
65 <filename>/usr/lib</filename> to compare, such as
66 <filename>tmpfiles.d</filename>, <filename>sysctl.d</filename> or
67 <filename>systemd/system</filename>.</para>
68
69 <para>When no argument is specified a number of
386da858 70 well-known subdirectories are searched for overridden
7e8d5761
LP
71 files.</para>
72 </refsect1>
73
74 <refsect1>
75 <title>Options</title>
76
77 <para>The following options are understood:</para>
78
79 <variablelist>
80 <varlistentry>
81 <term><option>-h</option></term>
82 <term><option>--help</option></term>
83
84 <listitem><para>Prints a short help
85 text and exits.</para></listitem>
86 </varlistentry>
87
88 <varlistentry>
89 <term><option>--version</option></term>
90
91 <listitem><para>Prints a short version
92 string and exits.</para></listitem>
93 </varlistentry>
94
95 <varlistentry>
96 <term><option>--no-pager</option></term>
97
0e25e94e
KS
98 <listitem><para>Do not pipe output into a
99 pager.</para></listitem>
100 </varlistentry>
7e8d5761 101
807f4645 102 <varlistentry>
807f4645 103 <term><option>-t</option></term>
a7f5bb1e 104 <term><option>--type=</option></term>
807f4645
GN
105
106 <listitem><para>When listing the
107 differences, only list those that are
108 asked for. The list itself is a
109 comma-separated list of desired
110 difference types.</para>
111
bb31a4ac 112 <para>Recognized types are:
807f4645
GN
113
114 <variablelist>
115 <varlistentry>
116 <term><varname>masked</varname></term>
117
118 <listitem><para>Show masked files</para></listitem>
119 </varlistentry>
120
121 <varlistentry>
122 <term><varname>equivalent</varname></term>
123
386da858
NM
124 <listitem><para>Show overridden
125 files that while overridden, do
807f4645
GN
126 not differ in content.</para></listitem>
127 </varlistentry>
128
129 <varlistentry>
130 <term><varname>redirected</varname></term>
131
132 <listitem><para>Show files that
133 are redirected to another.</para></listitem>
134 </varlistentry>
135
136 <varlistentry>
386da858 137 <term><varname>overridden</varname></term>
807f4645 138
386da858 139 <listitem><para>Show overridden,
807f4645
GN
140 and changed files.</para></listitem>
141 </varlistentry>
142
0000ce05
LN
143 <varlistentry>
144 <term><varname>extended</varname></term>
145
146 <listitem><para>Show *.conf files in drop-in
147 directories for units.</para></listitem>
148 </varlistentry>
149
807f4645
GN
150 <varlistentry>
151 <term><varname>unchanged</varname></term>
152
153 <listitem><para>Show unmodified
154 files too.</para></listitem>
155 </varlistentry>
156 </variablelist>
157 </para></listitem>
158 </varlistentry>
159
160 <varlistentry>
161 <term><option>--diff=</option></term>
162
163 <listitem><para>When showing modified
386da858 164 files, when a file is overridden show a
49f43d5f 165 diff as well. This option takes a
0c77310d
TA
166 boolean argument. If omitted it defaults
167 to <option>true</option>.</para></listitem>
807f4645
GN
168 </varlistentry>
169
7e8d5761
LP
170 </variablelist>
171
172 </refsect1>
173
174 <refsect1>
175 <title>Exit status</title>
176
177 <para>On success 0 is returned, a non-zero failure
178 code otherwise.</para>
179 </refsect1>
180
181 <refsect1>
182 <title>See Also</title>
183 <para>
184 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
185 </para>
186 </refsect1>
187
188</refentry>