summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-04-13 19:03:43 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-04-14 20:27:59 +0100
commite77e07f60186b96a9b5df398e92a18a72918e0f2 (patch)
treea027c2307414487484f58dea1a1c2752becda4ed /man
parent6e4ec79a3cc5a24d9a5ac53c3737c4d398ac383d (diff)
downloadsystemd-e77e07f60186b96a9b5df398e92a18a72918e0f2.tar.gz
preset: Add ignore directive
The ignore directive specifies to not do anything with the given unit and leave existing configuration intact. This allows distributions to gradually adopt preset files by shipping a ignore * preset file.
Diffstat (limited to 'man')
-rw-r--r--man/systemd.preset.xml24
1 files changed, 12 insertions, 12 deletions
diff --git a/man/systemd.preset.xml b/man/systemd.preset.xml
index ab730d2cc2..5d46a88c3e 100644
--- a/man/systemd.preset.xml
+++ b/man/systemd.preset.xml
@@ -62,23 +62,23 @@
<refsect1>
<title>Preset File Format</title>
- <para>The preset files contain a list of directives consisting of
- either the word <literal>enable</literal> or
- <literal>disable</literal> followed by a space and a unit name
- (possibly with shell style wildcards), separated by newlines.
- Empty lines and lines whose first non-whitespace character is <literal>#</literal> or
- <literal>;</literal> are ignored. Multiple instance names for unit
- templates may be specified as a space separated list at the end of
- the line instead of the customary position between <literal>@</literal>
- and the unit suffix.</para>
+ <para>The preset files contain a list of directives, one per line. Empty lines and lines whose first
+ non-whitespace character is <literal>#</literal> or <literal>;</literal> are ignored. Each directive
+ consists of one of the words <literal>enable</literal>, <literal>disable</literal>, or
+ <literal>ignore</literal>, followed by whitespace and a unit name. The unit name may contain shell-style
+ wildcards.</para>
+
+ <para>For the enable directive for template units, one or more instance names may be specified as a
+ space-separated list after the unit name. In this case, those instances will be enabled instead of the
+ instance specified via DefaultInstance= in the unit.</para>
<para>Presets must refer to the "real" unit file, and not to any aliases. See
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for a description of unit aliasing.</para>
- <para>Two different directives are understood:
- <literal>enable</literal> may be used to enable units by default,
- <literal>disable</literal> to disable units by default.</para>
+ <para>Three different directives are understood: <literal>enable</literal> may be used to enable units by
+ default, <literal>disable</literal> to disable units by default, and <literal>ignore</literal> to ignore
+ units and leave existing configuration intact.</para>
<para>If multiple lines apply to a unit name, the first matching
one takes precedence over all others.</para>