From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 Dec 2017 08:47:34 +0000 (+0100) Subject: man: add a table of setting inverses X-Git-Tag: v236~22^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bf9250617de4747c18159be364c1edeba359cf4;p=thirdparty%2Fsystemd.git 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 --- 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.