mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
man: document special considerations when mixing templated service units and DefaultDependencies=no
Fixes #2189.
This commit is contained in:
parent
a5a5f03382
commit
ae0a5fb1e1
@ -459,6 +459,12 @@
|
|||||||
this setting is the parent slice. Since the name of a slice
|
this setting is the parent slice. Since the name of a slice
|
||||||
unit implies the parent slice, it is hence redundant to ever
|
unit implies the parent slice, it is hence redundant to ever
|
||||||
set this parameter directly for slice units.</para>
|
set this parameter directly for slice units.</para>
|
||||||
|
|
||||||
|
<para>Special care should be taken when relying on the default slice assignment in templated service units
|
||||||
|
that have <varname>DefaultDependencies=no</varname> set, see
|
||||||
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>, section
|
||||||
|
"Automatic Dependencies" for details.</para>
|
||||||
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -113,6 +113,16 @@
|
|||||||
involved with early boot or late system shutdown should disable
|
involved with early boot or late system shutdown should disable
|
||||||
this option.</para>
|
this option.</para>
|
||||||
|
|
||||||
|
<para>Instanced service units (i.e. service units with an <literal>@</literal> in their name) are assigned by
|
||||||
|
default a per-template slice unit (see
|
||||||
|
<citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry>), named after the
|
||||||
|
template unit, containing all instances of the specific template. This slice is normally stopped at shutdown,
|
||||||
|
together with all template instances. If that is not desired, set <varname>DefaultDependencies=no</varname> in the
|
||||||
|
template unit, and either define your own per-template slice unit file that also sets
|
||||||
|
<varname>DefaultDependencies=no</varname>, or set <varname>Slice=system.slice</varname> (or another suitable slice)
|
||||||
|
in the template unit. Also see
|
||||||
|
<citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
||||||
|
|
||||||
<para>Additional implicit dependencies may be added as result of
|
<para>Additional implicit dependencies may be added as result of
|
||||||
execution and resource control parameters as documented in
|
execution and resource control parameters as documented in
|
||||||
<citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.exec</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user