From: Zbigniew Jędrzejewski-Szmek Date: Fri, 14 Sep 2018 14:39:47 +0000 (+0200) Subject: man: remove recommendation to pull in slices from slices.target X-Git-Tag: v240~686^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aabca00581f262fc0c5a1a31ab3978e68cb0ddf;p=platform%2Fupstream%2Fsystemd.git man: remove recommendation to pull in slices from slices.target That recommendation is likely to cause more trouble and for pretty much all end-user units is not useful. Let's recommend relying on the implicit dependency instead. Fixes #10015. --- diff --git a/man/systemd.special.xml b/man/systemd.special.xml index 38006c6..0d25e40 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -596,14 +596,18 @@ A special target unit that sets up all slice units (see systemd.slice5 - for details) that shall be active after boot. By default the generic - system.slice slice unit, as well as the root slice unit - -.slice, is pulled in and ordered before this unit (see + for details) that shall always be active after boot. By default the generic + system.slice slice unit as well as the root slice unit + -.slice are pulled in and ordered before this unit (see below). - It's a good idea to add WantedBy=slices.target lines to the - [Install] section of all slices units that may be installed - dynamically. + Adding slice units to slices.target is generally not + necessary. Instead, when some unit that uses Slice= is started, the + specified slice will be started automatically. Adding + WantedBy=slices.target lines to the [Install] + section should only be done for units that need to be always active. In that case care + needs to be taken to avoid creating a loop through the automatic dependencies on + "parent" slices.