summaryrefslogtreecommitdiff
path: root/man/systemd.swap.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-28 21:36:13 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-28 21:36:13 +0200
commitf9276855a1d270b6c3f857cdaf2c4b49920c2228 (patch)
tree3e56e8172e4bd57fe72901635691bef8375b81c6 /man/systemd.swap.xml
parent65c9e467528daa438167853cc91d37bfcb875836 (diff)
man: explain a couple of default dependencies
Diffstat (limited to 'man/systemd.swap.xml')
-rw-r--r--man/systemd.swap.xml23
1 files changed, 20 insertions, 3 deletions
diff --git a/man/systemd.swap.xml b/man/systemd.swap.xml
index 45f8f40ae..d95e39ed8 100644
--- a/man/systemd.swap.xml
+++ b/man/systemd.swap.xml
@@ -68,13 +68,23 @@
specific configuration options are configured in the
[Swap] section.</para>
- <para>Swap units must be named after the devices they
- control. Example: the swap device
+ <para>Swap units must be named after the devices
+ (resp. files) they control. Example: the swap device
<filename>/dev/sda5</filename> must be configured in a
unit file <filename>dev-sda5.swap</filename>. For
details about the escaping logic used to convert a
file system path to a unit name see
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
+
+ <para>All swap units automatically get the appropriate
+ dependencies on the devices (resp. on the mount points
+ of the files) they are actived from.</para>
+
+ <para>Swap units with
+ <varname>DefaultDependencies=</varname> enabled
+ implicitly acquire a conflicting dependency to
+ <filename>umount.target</filename> so that they are
+ deactivated at shutdown.</para>
</refsect1>
<refsect1>
@@ -88,6 +98,13 @@
<para>If a swap device or file is configured in both
<filename>/etc/fstab</filename> and a unit file the
configuration in the latter takes precedence.</para>
+
+ <para>Unless the <option>noauto</option> option is set
+ for them all swap units configured in
+ <filename>/etc/fstab</filename> are also added as
+ requirements to <filename>swap.target</filename>, so
+ that they are waited for and activated during
+ boot.</para>
</refsect1>
<refsect1>
@@ -149,7 +166,7 @@
a time span value such as "5min
20s". Pass 0 to disable the timeout
logic. Defaults to
- 60s.</para></listitem>
+ 3min.</para></listitem>
</varlistentry>
<varlistentry>