From 2bf9250617de4747c18159be364c1edeba359cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 7 Dec 2017 09:47:34 +0100 Subject: [PATCH] man: add a table of setting inverses It would be nicer to use to place the notes directly in the table, but docbook renders this improperly. v2: - also add "RequiredBy=" to the notes section - remove duplicated paragraph v3: - clarify the description - drop References/ReferenceBy which are only shown in systemd-analyze dump --- man/systemd.unit.xml | 108 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index a4de424835a..f3391b350c6 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1220,9 +1220,115 @@ files. This functionality should not be used in normal units. - + + + Mapping of unit properties to their inverses + + Unit settings that create a relationship with a second unit usually show up + in properties of both units, for example in systemctl show + output. In some cases the name of the property is the same as the name of the + configuration setting, but not always. This table lists the pairs of properties + that are shown on two units which are connected through some dependency, and shows + which property on "source" unit corresponds to which property on the "target" unit. + + + + + "Forward" and "reverse" unit properties + + + + + + + + + "Forward" property + "Reverse" property + Where used + + + + + Before= + After= + Both are unit file options + + + After= + Before= + + + Requires= + RequiredBy= + A unit file option; an option in the [Install] section + + + Wants= + WantedBy= + A unit file option; an option in the [Install] section + + + PartOf= + ConsistsOf= + A unit file option; an automatic property + + + BindsTo= + BoundBy= + A unit file option; an automatic property + + + Requisite= + RequisiteOf= + A unit file option; an automatic property + + + Triggers= + TriggeredBy= + Automatic properties, see notes below + + + Conflicts= + ConflictedBy= + A unit file option; an automatic property + + + PropagatesReloadTo= + ReloadPropagatedFrom= + Both are unit file options + + + ReloadPropagatedFrom= + PropagatesReloadTo= + + + +
+ + Note: WantedBy= and RequiredBy= are + used in the [Install] section to create symlinks in .wants/ + and .requires/ directories. They cannot be used directly as a + unit configuration setting. + + Note: ConsistsOf=, BoundBy=, + RequisiteOf=, ConflictedBy= are created + implicitly along with their reverse and cannot be specified directly. + + Note: Triggers= is created implicitly between a socket, + path unit, or an automount unit, and the unit they activate. By default a unit + with the same name is triggered, but this can be overriden using + Sockets=, Service=, and Unit= + settings. See + systemd.service5, + systemd.socket5, + systemd.path5, + and + systemd.automount5 + for details. TriggersBy= is created implicitly on the + triggered unit.