diff options
author | Luca BRUNO <luca.bruno@coreos.com> | 2022-09-19 12:09:17 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-20 13:57:26 +0200 |
commit | 72ceee435d9d585115bd89f8aca4883d240cd387 (patch) | |
tree | e6ac541ee3362996fc73f8297409d167974c3830 /man/systemd.unit.xml | |
parent | boot: Change the way we provide builtins (diff) | |
download | systemd-72ceee435d9d585115bd89f8aca4883d240cd387.tar.xz systemd-72ceee435d9d585115bd89f8aca4883d240cd387.zip |
docs: add a note about selectively overriding default dependencies
This documents that explicit `Before=`/`After=` dependencies can be
used to selectively override implicit ordering coming from default
dependencies. That allows for more granular control compared to the
already documented `DefaultDependencies=no` option.
The alternative approach came up in a discussion around the ordering
of `boot-complete.target`, so this also adds an explicit suggestion
in that direction to the "Automatic Boot Assessment" documentation.
Ref: https://lists.freedesktop.org/archives/systemd-devel/2022-September/048330.html
Diffstat (limited to 'man/systemd.unit.xml')
-rw-r--r-- | man/systemd.unit.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 02d5e72aee..e29bb98540 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -331,11 +331,11 @@ <para>For example, target units will complement all configured dependencies of type <varname>Wants=</varname> or <varname>Requires=</varname> with dependencies of type - <varname>After=</varname> unless <varname>DefaultDependencies=no</varname> is set in the - specified units. See + <varname>After=</varname>. See <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry> - for details. Note that this behavior can be turned off by setting - <varname>DefaultDependencies=no</varname>.</para> + for details. Note that this behavior can be opted out by setting + <varname>DefaultDependencies=no</varname> in the specified units, or it can be selectively + overidden via an explicit <varname>Before=</varname> dependency.</para> </refsect2> </refsect1> |