From: Lennart Poettering Date: Fri, 29 Jan 2016 15:26:55 +0000 (+0100) Subject: man: document special considerations when mixing templated service units and DefaultD... X-Git-Tag: v229~61^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae0a5fb1e14c9871ada1eac09cbe01021814d342;p=thirdparty%2Fsystemd.git man: document special considerations when mixing templated service units and DefaultDependencies=no Fixes #2189. --- diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index b1106c759dc..b6b38fde589 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -459,6 +459,12 @@ this setting is the parent slice. Since the name of a slice unit implies the parent slice, it is hence redundant to ever set this parameter directly for slice units. + + Special care should be taken when relying on the default slice assignment in templated service units + that have DefaultDependencies=no set, see + systemd.service5, section + "Automatic Dependencies" for details. + diff --git a/man/systemd.service.xml b/man/systemd.service.xml index b998a1f81f8..d7b19ee27f5 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -113,6 +113,16 @@ involved with early boot or late system shutdown should disable this option. + Instanced service units (i.e. service units with an @ in their name) are assigned by + default a per-template slice unit (see + systemd.slice5), 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 DefaultDependencies=no in the + template unit, and either define your own per-template slice unit file that also sets + DefaultDependencies=no, or set Slice=system.slice (or another suitable slice) + in the template unit. Also see + systemd.resource-control5. + Additional implicit dependencies may be added as result of execution and resource control parameters as documented in systemd.exec5