summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man8/systemd-udevd.service.8
blob: 5ca6437b319d1ada4e8b1891c3f6be49323550ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
'\" t
.TH "SYSTEMD\-UDEVD\&.SERVICE" "8" "" "systemd 255" "systemd-udevd.service"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
systemd-udevd.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd \- Device event managing daemon
.SH "SYNOPSIS"
.PP
systemd\-udevd\&.service
.PP
systemd\-udevd\-control\&.socket
.PP
systemd\-udevd\-kernel\&.socket
.HP \w'\fB/usr/lib/systemd/systemd\-udevd\fR\ 'u
\fB/usr/lib/systemd/systemd\-udevd\fR [\fB\-\-daemon\fR] [\fB\-\-debug\fR] [\fB\-\-children\-max=\fR] [\fB\-\-exec\-delay=\fR] [\fB\-\-event\-timeout=\fR] [\fB\-\-resolve\-names=early|late|never\fR] [\fB\-\-version\fR] [\fB\-\-help\fR]
.SH "DESCRIPTION"
.PP
\fBsystemd\-udevd\fR
listens to kernel uevents\&. For every event, systemd\-udevd executes matching instructions specified in udev rules\&. See
\fBudev\fR(7)\&.
.PP
The behavior of the daemon can be configured using
\fBudev.conf\fR(5), its command line options, environment variables, and on the kernel command line, or changed dynamically with
\fBudevadm control\fR\&.
.SH "OPTIONS"
.PP
\fB\-d\fR, \fB\-\-daemon\fR
.RS 4
Detach and run in the background\&.
.sp
Added in version 186\&.
.RE
.PP
\fB\-D\fR, \fB\-\-debug\fR
.RS 4
Print debug messages to standard error\&.
.sp
Added in version 186\&.
.RE
.PP
\fB\-c\fR, \fB\-\-children\-max=\fR
.RS 4
Limit the number of events executed in parallel\&.
.sp
Added in version 186\&.
.RE
.PP
\fB\-e\fR, \fB\-\-exec\-delay=\fR
.RS 4
Delay the execution of each
\fIRUN{\fR\fI\fIprogram\fR\fR\fI}\fR
parameter by the given number of seconds\&. This option might be useful when debugging system crashes during coldplug caused by loading non\-working kernel modules\&.
.sp
Added in version 186\&.
.RE
.PP
\fB\-t\fR, \fB\-\-event\-timeout=\fR
.RS 4
Set the number of seconds to wait for events to finish\&. After this time, the event will be terminated\&. The default is 180 seconds\&.
.sp
Added in version 216\&.
.RE
.PP
\fB\-s\fR, \fB\-\-timeout\-signal=\fR
.RS 4
Set the signal which
systemd\-udevd
will send to forked off processes after reaching event timeout\&. The setting can be overridden at boot time with the kernel command line option
\fIudev\&.timeout_signal=\fR\&. Setting to
\fBSIGABRT\fR
may be helpful in order to debug worker timeouts\&. Defaults to
\fBSIGKILL\fR\&. Note that setting the option on the command line overrides the setting from the configuration file\&.
.sp
Added in version 246\&.
.RE
.PP
\fB\-N\fR, \fB\-\-resolve\-names=\fR
.RS 4
Specify when systemd\-udevd should resolve names of users and groups\&. When set to
\fBearly\fR
(the default), names will be resolved when the rules are parsed\&. When set to
\fBlate\fR, names will be resolved for every event\&. When set to
\fBnever\fR, names will never be resolved and all devices will be owned by root\&.
.sp
Added in version 186\&.
.RE
.PP
\fB\-h\fR, \fB\-\-help\fR
.RS 4
Print a short help text and exit\&.
.RE
.PP
\fB\-\-version\fR
.RS 4
Print a short version string and exit\&.
.RE
.SH "KERNEL COMMAND LINE"
.PP
Parameters prefixed with "rd\&." will be read when
\fBsystemd\-udevd\fR
is used in an initrd, those without will be processed both in the initrd and on the host\&.
.PP
\fIudev\&.log_level=\fR, \fIrd\&.udev\&.log_level=\fR
.RS 4
Set the log level\&.
.sp
Added in version 247\&.
.RE
.PP
\fIudev\&.children_max=\fR, \fIrd\&.udev\&.children_max=\fR
.RS 4
Limit the number of events executed in parallel\&.
.sp
Added in version 186\&.
.RE
.PP
\fIudev\&.exec_delay=\fR, \fIrd\&.udev\&.exec_delay=\fR
.RS 4
Delay the execution of each
\fIRUN{\fR\fI\fIprogram\fR\fR\fI}\fR
parameter by the given number of seconds\&. This option might be useful when debugging system crashes during coldplug caused by loading non\-working kernel modules\&.
.sp
Added in version 186\&.
.RE
.PP
\fIudev\&.event_timeout=\fR, \fIrd\&.udev\&.event_timeout=\fR
.RS 4
Wait for events to finish up to the given number of seconds\&. This option might be useful if events are terminated due to kernel drivers taking too long to initialize\&.
.sp
Added in version 216\&.
.RE
.PP
\fIudev\&.timeout_signal=\fR, \fIrd\&.udev\&.timeout_signal=\fR
.RS 4
Specifies a signal that
systemd\-udevd
will send to workers on timeout\&. Note that kernel command line option overrides both the setting in the configuration file and the one on the program command line\&.
.sp
Added in version 246\&.
.RE
.PP
\fIudev\&.blockdev_read_only\fR, \fIrd\&.udev\&.blockdev_read_only\fR
.RS 4
If specified, mark all physical block devices read\-only as they appear\&. Synthetic block devices (such as loopback block devices or device mapper devices) are left as they are\&. This is useful to guarantee that the contents of physical block devices remains unmodified during runtime, for example to implement fully stateless systems, for testing or for recovery situations where corrupted file systems shall not be corrupted further through accidental modification\&.
.sp
A block device may be marked writable again by issuing the
\fBblockdev \-\-setrw\fR
command, see
\fBblockdev\fR(8)
for details\&.
.sp
Added in version 246\&.
.RE
.PP
\fInet\&.ifnames=\fR
.RS 4
Network interfaces are renamed to give them predictable names when possible\&. It is enabled by default; specifying 0 disables it\&.
.sp
Added in version 199\&.
.RE
.PP
\fInet\&.naming\-scheme=\fR
.RS 4
Network interfaces are renamed to give them predictable names when possible (unless
\fInet\&.ifnames=0\fR
is specified, see above)\&. With this kernel command line option it is possible to pick a specific version of this algorithm and override the default chosen at compilation time\&. Expects one of the naming scheme identifiers listed in
\fBsystemd.net-naming-scheme\fR(7), or
"latest"
to select the latest scheme known (to this particular version of
systemd\-udevd\&.service)\&.
.sp
Note that selecting a specific scheme is not sufficient to fully stabilize interface naming: the naming is generally derived from driver attributes exposed by the kernel\&. As the kernel is updated, previously missing attributes
systemd\-udevd\&.service
is checking might appear, which affects older name derivation algorithms, too\&.
.sp
Added in version 240\&.
.RE
.PP
\fInet\&.ifname\-policy=\fR\fI\fIpolicy1\fR\fR\fI[,\fR\fI\fIpolicy2\fR\fR\fI,\&...][,\fR\fI\fIMAC\fR\fR\fI]\fR
.RS 4
Specifies naming policies applied when renaming network interfaces\&. Takes a list of policies and an optional MAC address separated with comma\&. Each policy value must be one of the policies understood by the
\fINamePolicy=\fR
setting in \&.link files, e\&.g\&.
"onboard"
or
"path"\&. See
\fBsystemd.link\fR(5)
for more details\&. When the MAC address is specified, the policies are applied to the interface which has the address\&. When no MAC address is specified, the policies are applied to all interfaces\&. This kernel command line argument can be specified multiple times\&.
.sp
This argument is not directly read by
\fBsystemd\-udevd\fR, but is instead converted to a \&.link file by
\fBsystemd-network-generator.service\fR(8)\&. For this argument to take effect,
systemd\-network\-generator\&.service
must be enabled\&.
.sp
Example:
.sp
.if n \{\
.RS 4
.\}
.nf
net\&.ifname\-policy=keep,kernel,path,slot,onboard,01:23:45:67:89:ab
net\&.ifname\-policy=keep,kernel,path,slot,onboard,mac
.fi
.if n \{\
.RE
.\}
.sp
This is mostly equivalent to creating the following \&.link files:
.sp
.if n \{\
.RS 4
.\}
.nf
# 91\-name\-policy\-with\-mac\&.link
[Match]
MACAddress=01:23:45:67:89:ab

[Link]
NamePolicy=keep kernel path slot onboard
AlternativeNamePolicy=path slot onboard
.fi
.if n \{\
.RE
.\}
.sp
and
.sp
.if n \{\
.RS 4
.\}
.nf
# 92\-name\-policy\-for\-all\&.link
[Match]
OriginalName=*

[Link]
NamePolicy=keep kernel path slot onboard mac
AlternativeNamePolicy=path slot onboard mac
.fi
.if n \{\
.RE
.\}
.sp
Added in version 250\&.
.RE
.SH "SEE ALSO"
.PP
\fBudev.conf\fR(5),
\fBudev\fR(7),
\fBudevadm\fR(8)