diff options
author | John Lin <johnlinp@gmail.com> | 2017-09-12 12:02:27 +0800 |
---|---|---|
committer | John Lin <johnlinp@gmail.com> | 2017-09-13 11:39:09 +0800 |
commit | 45f09f939b50387d65ab6fc46f47608523a6ef19 (patch) | |
tree | 5f59d953c2a4947701a7a8c55d8f5531fe4c0f07 /man/systemd.swap.xml | |
parent | bbe0b4a8d5e84ac28689ba4b6f817524375622c3 (diff) | |
download | systemd-45f09f939b50387d65ab6fc46f47608523a6ef19.tar.gz systemd-45f09f939b50387d65ab6fc46f47608523a6ef19.tar.bz2 systemd-45f09f939b50387d65ab6fc46f47608523a6ef19.zip |
man: explicitly distinguish "implicit dependencies" and "default dependencies"
Fixes: #6793
Diffstat (limited to 'man/systemd.swap.xml')
-rw-r--r-- | man/systemd.swap.xml | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml index 184abff260..254389e774 100644 --- a/man/systemd.swap.xml +++ b/man/systemd.swap.xml @@ -87,17 +87,16 @@ </refsect1> <refsect1> - <title>Automatic Dependencies</title> + <title>Implicit Dependencies</title> - <para>All swap units automatically get the - <varname>BindsTo=</varname> and <varname>After=</varname> - dependencies on the device units or the mount units of the files - they are activated from.</para> + <para>The following dependencies are implicitly added:</para> - <para>Swap units with <varname>DefaultDependencies=</varname> set to its default <option>yes</option> value in the - <literal>[Unit]</literal> section enabled implicitly acquire a <varname>Conflicts=</varname> and a - <varname>Before=</varname> dependency on <filename>umount.target</filename> so that they are deactivated at - shutdown as well as a <varname>Before=swap.target</varname> dependency.</para> + <itemizedlist> + <listitem><para>All swap units automatically get the + <varname>BindsTo=</varname> and <varname>After=</varname> + dependencies on the device units or the mount units of the files + they are activated from.</para></listitem> + </itemizedlist> <para>Additional implicit dependencies may be added as result of execution and resource control parameters as documented in @@ -107,6 +106,18 @@ </refsect1> <refsect1> + <title>Default Dependencies</title> + + <para>The following dependencies are added unless <varname>DefaultDependencies=no</varname> is set:</para> + + <itemizedlist> + <listitem><para>Swap units automatically acquire a <varname>Conflicts=</varname> and a + <varname>Before=</varname> dependency on <filename>umount.target</filename> so that they are deactivated at + shutdown as well as a <varname>Before=swap.target</varname> dependency.</para></listitem> + </itemizedlist> + </refsect1> + + <refsect1> <title><filename>fstab</filename></title> <para>Swap units may either be configured via unit files, or via |