1SYSTEMD.SWAP(5) systemd.swap SYSTEMD.SWAP(5)
2
3
4
6 systemd.swap - systemd swap configuration files
7
9 systemd.swap
10
12 A unit configuration file whose name ends in .swap encodes information
13 about a swap device or file for memory paging controlled and supervised
14 by systemd.
15
16 This man page lists the configuration options specific to this unit
17 type. See systemd.unit(5) for the common options of all unit
18 configuration files. The common configuration items are configured in
19 the generic [Unit] and [Install] sections. The swap specific
20 configuration options are configured in the [Swap] section.
21
22 Swap units must be named after the devices they control. Example: the
23 swap device /dev/sda5 must be configured in a unit file dev-sda5.swap.
24 For details about the escaping logic used to convert a file system path
25 to a unit name see systemd.unit(5).
26
28 Swap units may either be configured via unit files, or via /etc/fstab
29 (see fstab(5) for details).
30
31 If a swap device or file is configured in both /etc/fstab and a unit
32 file the configuration in the latter takes precedence.
33
35 Swap files must include a [Swap] section, which carries information
36 about the swap device it supervises. The options specific to the [Swap]
37 section of swap units are the following:
38
39 What=
40 Takes an absolute path of a device node or file to use for paging.
41 See swapon(8) for details. If this refers to a device node, a
42 dependency on the respective device unit is automatically created.
43 (See systemd.device(5) for more information.) If this refers to a
44 file, a dependency on the respective mount unit is automatically
45 created. (See systemd.mount(5) for more information.) This option
46 is mandatory.
47
48 Priority=
49 Swap priority to use when activating the swap device or file. This
50 takes an integer. This setting is optional.
51
53 systemd(1), systemctl(8), systemd.unit(5), systemd.device(5),
54 systemd.mount(5), swapon(8)
55
57 Lennart Poettering <lennart@poettering.net>
58 Developer
59
60
61
62systemd 09/14/2010 SYSTEMD.SWAP(5)