systemd-delta.xml revision ff9b60f38bf68eba4a47cabff14547d92e083214
45632c3574ce843b9e85b9f73efe75b7b809f789slive<?xml version='1.0'?> <!--*-nxml-*-->
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd<!--
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd This file is part of systemd.
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
3f08db06526d6901aa08c110b5bc7dde6bc39905nd Copyright 2012 Lennart Poettering
6df89e6e4adeb986b41b7ec6b7593a887e031ce7nd
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim systemd is free software; you can redistribute it and/or modify it
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim under the terms of the GNU Lesser General Public License as published by
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen the Free Software Foundation; either version 2.1 of the License, or
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen (at your option) any later version.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen systemd is distributed in the hope that it will be useful, but
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim WITHOUT ANY WARRANTY; without even the implied warranty of
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd Lesser General Public License for more details.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
3f08db06526d6901aa08c110b5bc7dde6bc39905nd You should have received a copy of the GNU Lesser General Public License
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim along with systemd; If not, see <http://www.gnu.org/licenses/>.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim-->
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
4b5981e276e93df97c34e4da05ca5cf8bbd937dand<refentry id="systemd-delta"
3f08db06526d6901aa08c110b5bc7dde6bc39905nd xmlns:xi="http://www.w3.org/2001/XInclude">
6df89e6e4adeb986b41b7ec6b7593a887e031ce7nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <refentryinfo>
ed1d958582984a7c54a6ca859e15939a414fa733nd <title>systemd-delta</title>
ed1d958582984a7c54a6ca859e15939a414fa733nd <productname>systemd</productname>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <authorgroup>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <author>
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd <contrib>Developer</contrib>
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd <firstname>Lennart</firstname>
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end <surname>Poettering</surname>
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen <email>lennart@poettering.net</email>
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen </author>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd </authorgroup>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd </refentryinfo>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
a29610af88e278144045bfa1bc63b4a1a4b5ff14trawick <refmeta>
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz <refentrytitle>systemd-delta</refentrytitle>
35b1112eadc3479a2d81ea1b836aa87f21505ee9jerenkrantz <manvolnum>1</manvolnum>
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz </refmeta>
a12dd6260a66f51e25119982390def72e2db4be5nd
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <refnamediv>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <refname>systemd-delta</refname>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <refpurpose>Find overridden configuration files</refpurpose>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd </refnamediv>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <refsynopsisdiv>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <cmdsynopsis>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <command>systemd-delta</command>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <arg choice="opt" rep="repeat">OPTIONS</arg>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <arg choice="opt" rep="repeat"><replaceable>PREFIX</replaceable><optional>/<replaceable>SUFFIX</replaceable></optional>|<replaceable>SUFFIX</replaceable></arg>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd </cmdsynopsis>
63581ee088272ef76aa8d053609dc1705c222deesf </refsynopsisdiv>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <refsect1>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <title>Description</title>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
0745f050c4e7b9eeac73c7f10a528ce5015854bcrbowen <para><command>systemd-delta</command> may be used to identify and
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd compare configuration files that override other configuration
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd files. Files in <filename>/etc</filename> have highest priority,
4af55bbfdbff2cae0cd3195876c93ea991523d1fcolm files in <filename>/run</filename> have the second highest
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd priority, ..., files in <filename>/lib</filename> have lowest
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd priority. Files in a directory with higher priority override files
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd with the same name in directories of lower priority. In addition,
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd certain configuration files can have <literal>.d</literal>
64f23d7fddbd8bacb8c18434baedb5f1f86b432aminfrin directories which contain "drop-in" files with configuration
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd snippets which augment the main configuration file. "Drop-in"
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd files can be overridden in the same way by placing files with the
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd same name in a directory of higher priority (except that in case
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd of "drop-in" files, both the "drop-in" file name and the name of
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd the containing directory, which corresponds to the name of the
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd main configuration file, must match). For a fuller explanation,
38819b9bf8b10d6db4842fb5a4ede7828b409819rbowen see
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd </para>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
1844bb5f7939bd31f51dffaf8d8cf1c00657a681rbowen <para>The command line argument will be split into a prefix and a
1844bb5f7939bd31f51dffaf8d8cf1c00657a681rbowen suffix. Either is optional. The prefix must be one of the
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd directories containing configuration files
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd (<filename>/etc</filename>, <filename>/run</filename>,
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <filename>/usr/lib</filename>, ...). If it is given, only
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd overriding files contained in this directory will be shown.
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd Otherwise, all overriding files will be shown. The suffix must be
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd a name of a subdirectory containing configuration files like
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <filename>tmpfiles.d</filename>, <filename>sysctl.d</filename> or
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <filename>systemd/system</filename>. If it is given, only
664e667e221a15fa5f456e73948c67710f43f1b4minfrin configuration files in this subdirectory (across all configuration
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd paths) will be analyzed. Otherwise, all configuration files will
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd be analyzed. If the command line argument is not given at all, all
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd configuration files will be analyzed. See below for some
c5ac4f57bfd156a62495b9c6a049f05bbcb69acarbowen examples.</para>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd </refsect1>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
0f6a0052bbfc841b1067c1ce0ca37880121d4713rbowen <refsect1>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <title>Options</title>
e930328445e961ade1bd37ed7ca01c293b586400noodl
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <para>The following options are understood:</para>
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <variablelist>
ed1d958582984a7c54a6ca859e15939a414fa733nd <varlistentry>
ed1d958582984a7c54a6ca859e15939a414fa733nd <term><option>-t</option></term>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <term><option>--type=</option></term>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <listitem><para>When listing the differences, only list those
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd that are asked for. The list itself is a comma-separated list
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd of desired difference types.</para>
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen <para>Recognized types are:
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <variablelist>
5effc8b39fae5cd169d17f342bfc265705840014rbowen <varlistentry>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd <term><varname>masked</varname></term>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd <listitem><para>Show masked files</para></listitem>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd </varlistentry>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd
29fb68cf24dbdb4985cbb4734cb6074ea4bbab26nd <varlistentry>
<term><varname>equivalent</varname></term>
<listitem><para>Show overridden files that while
overridden, do not differ in content.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>redirected</varname></term>
<listitem><para>Show files that are redirected to
another.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>overridden</varname></term>
<listitem><para>Show overridden, and changed
files.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>extended</varname></term>
<listitem><para>Show <filename>*.conf</filename> files
in drop-in directories for units.</para></listitem>
</varlistentry>
<varlistentry>
<term><varname>unchanged</varname></term>
<listitem><para>Show unmodified files
too.</para></listitem>
</varlistentry>
</variablelist>
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--diff=</option></term>
<listitem><para>When showing modified files, when a file is
overridden show a diff as well. This option takes a boolean
argument. If omitted, it defaults to
<option>true</option>.</para></listitem>
</varlistentry>
<xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" />
<xi:include href="standard-options.xml" xpointer="no-pager" />
</variablelist>
</refsect1>
<refsect1>
<title>Examples</title>
<para>To see all local configuration:</para>
<programlisting>systemd-delta</programlisting>
<para>To see all runtime configuration:</para>
<programlisting>systemd-delta /run</programlisting>
<para>To see all system unit configuration changes:</para>
<programlisting>systemd-delta systemd/system</programlisting>
<para>To see all runtime "drop-in" changes for system units:</para>
<programlisting>systemd-delta --type=extended /run/systemd/system</programlisting>
</refsect1>
<refsect1>
<title>Exit status</title>
<para>On success, 0 is returned, a non-zero failure code
otherwise.</para>
</refsect1>
<refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
</para>
</refsect1>
</refentry>