1SYSTEMD.DEVICE(5) systemd.device SYSTEMD.DEVICE(5)
2
3
4
6 systemd.device - systemd device configuration files
7
9 systemd.device
10
12 A unit configuration file whose name ends in .device encodes
13 information about a device unit as exposed in the sysfs/udev(7) device
14 tree.
15
16 This unit type has no specific options. See systemd.unit(5) for the
17 common options of all unit configuration files. The common
18 configuration items are configured in the generic [Unit] and [Install]
19 sections. A separate [Device] section does not exist, since no
20 device-specific options may be configured.
21
22 systemd will automatically create dynamic device units for all kernel
23 devices that are marked with the "systemd" udev tag (by default all
24 block and network devices, and a few others). This may be used to
25 define dependencies between devices and other units.
26
27 Device units are named after the /sys and /dev paths they control.
28 Example: the device /dev/sda5 is exposed in systemd as dev-sda5.device.
29 For details about the escaping logic used to convert a file system path
30 to a unit name see systemd.unit(5).
31
33 The settings of device units may either be configured via unit files,
34 or directly from the udev database (which is recommended). The
35 following udev properties are understood by systemd:
36
37 SYSTEMD_WANTS=
38 Adds dependencies of type Wants from this unit to all listed units.
39 This may be used to activate arbitrary units, when a specific
40 device becomes available. Note that this and the other tags are not
41 taken into account unless the device is tagged with the "systemd"
42 string in the udev database, because otherwise the device is not
43 exposed as systemd unit.
44
45 SYSTEMD_ALIAS=
46 Adds an additional alias name to the device unit. This must be an
47 absolute path that is automatically transformed into a unit name.
48 (See above.)
49
50 ID_MODEL_FROM_DATABASE=, ID_MODEL=
51 If set, this property is used as description string for the device
52 unit.
53
55 systemd(1), systemctl(8), systemd.unit(5), udev(7)
56
58 Lennart Poettering <lennart@poettering.net>
59 Developer
60
61
62
63systemd 09/14/2010 SYSTEMD.DEVICE(5)