]>
Commit | Line | Data |
---|---|---|
6e866b33 | 1 | <?xml version='1.0'?> |
bb4f798a | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
663996b3 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
bb4f798a | 4 | <!-- SPDX-License-Identifier: LGPL-2.1+ --> |
52ad194e | 5 | |
60f067b4 JS |
6 | <refentry id="systemd-udevd.service" |
7 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
8 | ||
663996b3 MS |
9 | <refentryinfo> |
10 | <title>systemd-udevd.service</title> | |
11 | <productname>systemd</productname> | |
663996b3 MS |
12 | </refentryinfo> |
13 | ||
14 | <refmeta> | |
15 | <refentrytitle>systemd-udevd.service</refentrytitle> | |
16 | <manvolnum>8</manvolnum> | |
663996b3 MS |
17 | </refmeta> |
18 | ||
19 | <refnamediv> | |
20 | <refname>systemd-udevd.service</refname> | |
21 | <refname>systemd-udevd-control.socket</refname> | |
22 | <refname>systemd-udevd-kernel.socket</refname> | |
23 | <refname>systemd-udevd</refname> | |
24 | <refpurpose>Device event managing daemon</refpurpose> | |
25 | </refnamediv> | |
26 | ||
27 | <refsynopsisdiv> | |
28 | <para><filename>systemd-udevd.service</filename></para> | |
29 | <para><filename>systemd-udevd-control.socket</filename></para> | |
30 | <para><filename>systemd-udevd-kernel.socket</filename></para> | |
31 | ||
32 | <cmdsynopsis> | |
33 | <command>/usr/lib/systemd/systemd-udevd</command> | |
34 | <arg><option>--daemon</option></arg> | |
35 | <arg><option>--debug</option></arg> | |
36 | <arg><option>--children-max=</option></arg> | |
37 | <arg><option>--exec-delay=</option></arg> | |
5eef597e | 38 | <arg><option>--event-timeout=</option></arg> |
663996b3 MS |
39 | <arg><option>--resolve-names=early|late|never</option></arg> |
40 | <arg><option>--version</option></arg> | |
41 | <arg><option>--help</option></arg> | |
42 | </cmdsynopsis> | |
43 | ||
44 | </refsynopsisdiv> | |
45 | ||
46 | <refsect1><title>Description</title> | |
47 | <para><command>systemd-udevd</command> listens to kernel uevents. | |
5eef597e MP |
48 | For every event, systemd-udevd executes matching instructions |
49 | specified in udev rules. See <citerefentry> | |
50 | <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum> | |
51 | </citerefentry>.</para> | |
52 | ||
53 | <para>The behavior of the daemon can be configured using | |
54 | <citerefentry><refentrytitle>udev.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
f47781d8 MP |
55 | its command line options, environment variables, and on the kernel |
56 | command line, or changed dynamically with <command>udevadm | |
5eef597e MP |
57 | control</command>. |
58 | </para> | |
663996b3 MS |
59 | </refsect1> |
60 | ||
61 | <refsect1><title>Options</title> | |
62 | <variablelist> | |
63 | <varlistentry> | |
52ad194e | 64 | <term><option>-d</option></term> |
663996b3 MS |
65 | <term><option>--daemon</option></term> |
66 | <listitem> | |
67 | <para>Detach and run in the background.</para> | |
68 | </listitem> | |
69 | </varlistentry> | |
60f067b4 | 70 | |
663996b3 | 71 | <varlistentry> |
52ad194e | 72 | <term><option>-D</option></term> |
663996b3 MS |
73 | <term><option>--debug</option></term> |
74 | <listitem> | |
60f067b4 | 75 | <para>Print debug messages to standard error.</para> |
663996b3 MS |
76 | </listitem> |
77 | </varlistentry> | |
60f067b4 | 78 | |
663996b3 | 79 | <varlistentry> |
478ed938 | 80 | <term><option>-c</option></term> |
663996b3 MS |
81 | <term><option>--children-max=</option></term> |
82 | <listitem> | |
83 | <para>Limit the number of events executed in parallel.</para> | |
84 | </listitem> | |
85 | </varlistentry> | |
60f067b4 | 86 | |
663996b3 | 87 | <varlistentry> |
478ed938 | 88 | <term><option>-e</option></term> |
663996b3 MS |
89 | <term><option>--exec-delay=</option></term> |
90 | <listitem> | |
60f067b4 JS |
91 | <para>Delay the execution of <varname>RUN</varname> |
92 | instructions by the given number of seconds. This option | |
93 | might be useful when debugging system crashes during | |
94 | coldplug caused by loading non-working kernel | |
95 | modules.</para> | |
663996b3 MS |
96 | </listitem> |
97 | </varlistentry> | |
60f067b4 | 98 | |
5eef597e | 99 | <varlistentry> |
478ed938 | 100 | <term><option>-t</option></term> |
5eef597e MP |
101 | <term><option>--event-timeout=</option></term> |
102 | <listitem> | |
103 | <para>Set the number of seconds to wait for events to finish. After | |
db2df898 | 104 | this time, the event will be terminated. The default is 180 seconds.</para> |
5eef597e MP |
105 | </listitem> |
106 | </varlistentry> | |
107 | ||
663996b3 | 108 | <varlistentry> |
478ed938 | 109 | <term><option>-N</option></term> |
663996b3 MS |
110 | <term><option>--resolve-names=</option></term> |
111 | <listitem> | |
112 | <para>Specify when systemd-udevd should resolve names of users and groups. | |
60f067b4 | 113 | When set to <option>early</option> (the default), names will be |
663996b3 | 114 | resolved when the rules are parsed. When set to |
60f067b4 JS |
115 | <option>late</option>, names will be resolved for every event. |
116 | When set to <option>never</option>, names will never be resolved | |
663996b3 MS |
117 | and all devices will be owned by root.</para> |
118 | </listitem> | |
119 | </varlistentry> | |
60f067b4 | 120 | |
52ad194e | 121 | <xi:include href="standard-options.xml" xpointer="help" /> |
60f067b4 | 122 | <xi:include href="standard-options.xml" xpointer="version" /> |
663996b3 MS |
123 | </variablelist> |
124 | </refsect1> | |
125 | ||
663996b3 MS |
126 | <refsect1><title>Kernel command line</title> |
127 | <variablelist class='kernel-commandline-options'> | |
128 | <para>Parameters starting with "rd." will be read when | |
129 | <command>systemd-udevd</command> is used in an initrd.</para> | |
130 | <varlistentry> | |
2897b343 MP |
131 | <term><varname>udev.log_priority=</varname></term> |
132 | <term><varname>rd.udev.log_priority=</varname></term> | |
663996b3 | 133 | <listitem> |
f47781d8 | 134 | <para>Set the log level.</para> |
663996b3 MS |
135 | </listitem> |
136 | </varlistentry> | |
137 | <varlistentry> | |
2897b343 MP |
138 | <term><varname>udev.children_max=</varname></term> |
139 | <term><varname>rd.udev.children_max=</varname></term> | |
663996b3 MS |
140 | <listitem> |
141 | <para>Limit the number of events executed in parallel.</para> | |
142 | </listitem> | |
143 | </varlistentry> | |
144 | <varlistentry> | |
2897b343 MP |
145 | <term><varname>udev.exec_delay=</varname></term> |
146 | <term><varname>rd.udev.exec_delay=</varname></term> | |
663996b3 | 147 | <listitem> |
60f067b4 | 148 | <para>Delay the execution of <varname>RUN</varname> instructions by the given |
663996b3 MS |
149 | number of seconds. This option might be useful when |
150 | debugging system crashes during coldplug caused by loading | |
151 | non-working kernel modules.</para> | |
152 | </listitem> | |
153 | </varlistentry> | |
5eef597e | 154 | <varlistentry> |
2897b343 MP |
155 | <term><varname>udev.event_timeout=</varname></term> |
156 | <term><varname>rd.udev.event_timeout=</varname></term> | |
5eef597e MP |
157 | <listitem> |
158 | <para>Wait for events to finish up to the given number | |
159 | of seconds. This option might be useful if events are | |
160 | terminated due to kernel drivers taking too long to initialize.</para> | |
161 | </listitem> | |
162 | </varlistentry> | |
663996b3 MS |
163 | <varlistentry> |
164 | <term><varname>net.ifnames=</varname></term> | |
165 | <listitem> | |
166 | <para>Network interfaces are renamed to give them predictable names | |
60f067b4 | 167 | when possible. It is enabled by default; specifying 0 disables it.</para> |
663996b3 MS |
168 | </listitem> |
169 | </varlistentry> | |
6e866b33 MB |
170 | <varlistentry> |
171 | <term><varname>net.naming-scheme=</varname></term> | |
172 | <listitem> | |
173 | <para>Network interfaces are renamed to give them predictable names when possible (unless | |
f2dec872 BR |
174 | <varname>net.ifnames=0</varname> is specified, see above). With this kernel command line option it |
175 | is possible to pick a specific version of this algorithm and override the default chosen at | |
176 | compilation time. Expects one of the naming scheme identifiers listed in | |
177 | <citerefentry><refentrytitle>systemd.net-naming-scheme</refentrytitle><manvolnum>7</manvolnum></citerefentry>, | |
178 | or <literal>latest</literal> to select the latest scheme known (to this particular version of | |
179 | <filename>systemd-udevd.service</filename>).</para> | |
6e866b33 MB |
180 | |
181 | <para>Note that selecting a specific scheme is not sufficient to fully stabilize interface naming: | |
182 | the naming is generally derived from driver attributes exposed by the kernel. As the kernel is | |
183 | updated, previously missing attributes <filename>systemd-udevd.service</filename> is checking might | |
184 | appear, which affects older name derivation algorithms, too.</para> | |
185 | </listitem> | |
186 | </varlistentry> | |
663996b3 | 187 | </variablelist> |
f2dec872 BR |
188 | <!-- when adding entries here, consider also adding them in kernel-command-line.xml --> |
189 | </refsect1> | |
663996b3 | 190 | |
663996b3 MS |
191 | <refsect1> |
192 | <title>See Also</title> | |
5eef597e MP |
193 | <para> |
194 | <citerefentry><refentrytitle>udev.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
195 | <citerefentry><refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum></citerefentry>, | |
196 | <citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
197 | </para> | |
663996b3 MS |
198 | </refsect1> |
199 | </refentry> |