From: Zbigniew Jędrzejewski-Szmek Date: Sun, 23 Nov 2014 16:07:15 +0000 (-0500) Subject: man: reword list-dependencies description X-Git-Tag: v218~389 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f6375e837670911012ea0bd0de39511334d18021 man: reword list-dependencies description The previous version was a bit too vague. It is better to simply list all dependency types that are followed. Previous version also made an emphasis on dependencies introduced by configuration. But this command (or systemd) don't care about this distinction between configured and automatically added dependencies at all. This distinctionis removed from the main description, and an explanatory paragraph is added to remind the user that all dependencies are shown, no matter where they come from. --- diff --git a/man/systemctl.xml b/man/systemctl.xml index 033160329..4a7abab8a 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -151,9 +151,12 @@ along with systemd; If not, see . Show reverse dependencies between units with - list-dependencies, i.e. units with - dependencies of type Wants= or - Requires= on the given unit. + list-dependencies, i.e. follow + dependencies of type WantedBy=, + RequiredBy=, + RequiredByOverrridable=, + PartOf=, BoundBy=, + instead of Wants= and similar. @@ -164,10 +167,20 @@ along with systemd; If not, see . With list-dependencies, show the units that are ordered before the specified unit. In other - words, list the units that are in the After= - directive of the specified unit, have the specified unit in - their Before= directive, or are otherwise - implicit dependencies of the specified unit. + words, recursively list units following the + After= dependency. + + Note that any After= dependency is + automatically mirrored to create a + Before= dependency. Temporal dependencies + may be specified explictly, but are also created implicitly + for units which are WantedBy= targets + (see + systemd.target5), + and as a result of other directives (for example + RequiresMountsFor=). Both explicitly + and implicitly introduced dependencies are shown with + list-dependencies. @@ -177,10 +190,8 @@ along with systemd; If not, see . With list-dependencies, show the units that are ordered after the specified unit. In other - words, list the units that are in the Before= - directive of the specified unit, have the specified unit in - their After= directive, or otherwise depend - on the specified unit. + words, recursively list units following the + Before= dependency. @@ -848,15 +859,30 @@ kobject-uevent 1 systemd-udevd-kernel.socket systemd-udevd.service - list-dependencies NAME + + list-dependencies + NAME + - Shows required and wanted units of the specified - unit. If no unit is specified, - default.target is implied. Target units - are recursively expanded. When is - passed, all other units are recursively expanded as - well. + Shows units required and wanted by the specified + unit. This recursively lists units following the + Requires=, + RequiresOverridable=, + Requisite=, + RequisiteOverridable=, + Wants=, BindsTo= + dependencies. If no unit is specified, + default.target is implied. + + By default, only target units are recursively + expanded. When is passed, all other + units are recursively expanded as well. + + Options , + , + may be used to change what types of dependencies + are shown.