man: add explanation about target's DefaultDependencies= (#7120)

Closes #7113.
This commit is contained in:
Yu Watanabe 2017-10-18 15:30:35 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 4b4a972d2e
commit c85f1346c0
2 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,8 @@
<listitem><para>Target units will automatically complement all
configured dependencies of type <varname>Wants=</varname> or
<varname>Requires=</varname> with dependencies of type
<varname>After=</varname>. Note that <varname>Wants=</varname> or
<varname>After=</varname> unless <varname>DefaultDependencies=no</varname>
is set in the specified units. Note that <varname>Wants=</varname> or
<varname>Requires=</varname> must be defined in the target unit itself — if
you for example define <varname>Wants=</varname>some.target in
some.service, the automatic ordering will not be added.</para></listitem>

View File

@ -297,7 +297,8 @@
<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>. See
<varname>After=</varname> unless <varname>DefaultDependencies=no</varname>
is set in the specified units. 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>