man: clarify that DefaultDependencies= is in the [Unit] section
This hopefully reduces confusion resulting in issues like #2992.
This commit is contained in:
+11
-20
@@ -128,26 +128,17 @@
|
||||
<filename>systemd-quotacheck.service</filename> and
|
||||
<filename>quotaon.service</filename> are added.</para>
|
||||
|
||||
<para>For mount units with
|
||||
<varname>DefaultDependencies=yes</varname> (the default) a couple
|
||||
additional dependencies are added. Mount units referring to local
|
||||
file systems automatically gain an <varname>After=</varname>
|
||||
dependency on <filename>local-fs-pre.target</filename>. Network
|
||||
mount units automatically acquire <varname>After=</varname>
|
||||
dependencies on <filename>remote-fs-pre.target</filename>,
|
||||
<filename>network.target</filename> and
|
||||
<filename>network-online.target</filename>. Towards the latter a
|
||||
<varname>Wants=</varname> unit is added as well. Mount units
|
||||
referring to local and network file systems are distinguished by
|
||||
their file system type specification. In some cases this is not
|
||||
sufficient (for example network block device based mounts, such as
|
||||
iSCSI), in which case <option>_netdev</option> may be added to the
|
||||
mount option string of the unit, which forces systemd to consider the
|
||||
mount unit a network mount. Mount units (regardless if local or
|
||||
network) also acquire automatic <varname>Before=</varname> and
|
||||
<varname>Conflicts=</varname> on
|
||||
<filename>umount.target</filename> in order to be stopped
|
||||
during shutdown.</para>
|
||||
<para>For mount units with <varname>DefaultDependencies=yes</varname> in the <literal>[Unit]</literal> section (the
|
||||
default) a couple additional dependencies are added. Mount units referring to local file systems automatically gain
|
||||
an <varname>After=</varname> dependency on <filename>local-fs-pre.target</filename>. Network mount units
|
||||
automatically acquire <varname>After=</varname> dependencies on <filename>remote-fs-pre.target</filename>,
|
||||
<filename>network.target</filename> and <filename>network-online.target</filename>. Towards the latter a
|
||||
<varname>Wants=</varname> unit is added as well. Mount units referring to local and network file systems are
|
||||
distinguished by their file system type specification. In some cases this is not sufficient (for example network
|
||||
block device based mounts, such as iSCSI), in which case <option>_netdev</option> may be added to the mount option
|
||||
string of the unit, which forces systemd to consider the mount unit a network mount. Mount units (regardless if
|
||||
local or network) also acquire automatic <varname>Before=</varname> and <varname>Conflicts=</varname> on
|
||||
<filename>umount.target</filename> in order to be stopped during shutdown.</para>
|
||||
|
||||
<para>Additional implicit dependencies may be added as result of
|
||||
execution and resource control parameters as documented in
|
||||
|
||||
Reference in New Issue
Block a user