mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +03:00
docs: Add syntax for templated units to systemd.preset man page
This documents the syntax enable template@.service foo bar baz that was introduced in #9901 to preset templated units. (cherry picked from commit 1f667d8a7cff4355cd23ebebeb4d7179e3498eb8) (cherry picked from commit d1d3f2aa1561a9a75ce58026ef0a6bd4c5b464ac) (cherry picked from commit f4d5928122fe632b441145750a03d95fd8dd2cc6)
This commit is contained in:
parent
b431688238
commit
6127224ef9
@ -71,7 +71,10 @@
|
||||
<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.</para>
|
||||
<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>Presets must refer to the "real" unit file, and not to any aliases. See
|
||||
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||
@ -123,6 +126,17 @@ disable *</programlisting>
|
||||
<literal>99-</literal>, it will be read last and hence can easily
|
||||
be overridden by spin or administrator preset policy.</para>
|
||||
|
||||
<example>
|
||||
<title>Enable multiple template instances</title>
|
||||
|
||||
<programlisting># /usr/lib/systemd/system-preset/80-dirsrv.preset
|
||||
|
||||
enable dirsrv@.service foo bar baz</programlisting>
|
||||
</example>
|
||||
|
||||
<para>This enables all three of <filename>dirsrv@foo.service</filename>,
|
||||
<filename>dirsrv@bar.service</filename> and <filename>dirsrv@baz.service</filename>.</para>
|
||||
|
||||
<example>
|
||||
<title>A GNOME spin</title>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user