]>
Commit | Line | Data |
---|---|---|
514094f9 | 1 | <?xml version='1.0'?> |
3a54a157 | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
0307f791 | 4 | <!-- SPDX-License-Identifier: LGPL-2.1+ --> |
f48f7543 | 5 | |
dfdebb1b ZJS |
6 | <refentry id="systemd-udevd.service" |
7 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
8 | ||
63749b1a | 9 | <refentryinfo> |
49408357 | 10 | <title>systemd-udevd.service</title> |
d3a2386d | 11 | <productname>systemd</productname> |
63749b1a | 12 | </refentryinfo> |
420a506e | 13 | |
63749b1a | 14 | <refmeta> |
bad1837c | 15 | <refentrytitle>systemd-udevd.service</refentrytitle> |
63749b1a | 16 | <manvolnum>8</manvolnum> |
63749b1a | 17 | </refmeta> |
420a506e | 18 | |
63749b1a | 19 | <refnamediv> |
51dfddc2 CG |
20 | <refname>systemd-udevd.service</refname> |
21 | <refname>systemd-udevd-control.socket</refname> | |
22 | <refname>systemd-udevd-kernel.socket</refname> | |
bad1837c | 23 | <refname>systemd-udevd</refname> |
b79f817b | 24 | <refpurpose>Device event managing daemon</refpurpose> |
63749b1a | 25 | </refnamediv> |
420a506e | 26 | |
63749b1a | 27 | <refsynopsisdiv> |
51dfddc2 CG |
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> | |
b79f817b | 31 | |
63749b1a | 32 | <cmdsynopsis> |
12b42c76 | 33 | <command>/usr/lib/systemd/systemd-udevd</command> |
63749b1a | 34 | <arg><option>--daemon</option></arg> |
63749b1a | 35 | <arg><option>--debug</option></arg> |
9fa68615 KS |
36 | <arg><option>--children-max=</option></arg> |
37 | <arg><option>--exec-delay=</option></arg> | |
9719859c | 38 | <arg><option>--event-timeout=</option></arg> |
63749b1a | 39 | <arg><option>--resolve-names=early|late|never</option></arg> |
9fa68615 | 40 | <arg><option>--version</option></arg> |
63749b1a KS |
41 | <arg><option>--help</option></arg> |
42 | </cmdsynopsis> | |
b79f817b | 43 | |
63749b1a | 44 | </refsynopsisdiv> |
420a506e | 45 | |
63749b1a | 46 | <refsect1><title>Description</title> |
b8e8f0cb | 47 | <para><command>systemd-udevd</command> listens to kernel uevents. |
6fc5a404 ZJS |
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 | ||
203af57f ZJS |
53 | <para>The behavior of the daemon can be configured using |
54 | <citerefentry><refentrytitle>udev.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
81c7dd89 LP |
55 | its command line options, environment variables, and on the kernel |
56 | command line, or changed dynamically with <command>udevadm | |
203af57f | 57 | control</command>. |
6fc5a404 | 58 | </para> |
63749b1a | 59 | </refsect1> |
420a506e | 60 | |
63749b1a KS |
61 | <refsect1><title>Options</title> |
62 | <variablelist> | |
63 | <varlistentry> | |
a135d271 | 64 | <term><option>-d</option></term> |
63749b1a KS |
65 | <term><option>--daemon</option></term> |
66 | <listitem> | |
67 | <para>Detach and run in the background.</para> | |
68 | </listitem> | |
69 | </varlistentry> | |
dfdebb1b | 70 | |
63749b1a | 71 | <varlistentry> |
a135d271 | 72 | <term><option>-D</option></term> |
9fa68615 KS |
73 | <term><option>--debug</option></term> |
74 | <listitem> | |
6db27428 | 75 | <para>Print debug messages to standard error.</para> |
9fa68615 KS |
76 | </listitem> |
77 | </varlistentry> | |
dfdebb1b | 78 | |
9fa68615 | 79 | <varlistentry> |
a135d271 | 80 | <term><option>-c=</option></term> |
9fa68615 | 81 | <term><option>--children-max=</option></term> |
63749b1a | 82 | <listitem> |
b8e8f0cb | 83 | <para>Limit the number of events executed in parallel.</para> |
63749b1a KS |
84 | </listitem> |
85 | </varlistentry> | |
dfdebb1b | 86 | |
63749b1a | 87 | <varlistentry> |
a135d271 | 88 | <term><option>-e=</option></term> |
9fa68615 | 89 | <term><option>--exec-delay=</option></term> |
63749b1a | 90 | <listitem> |
6db27428 | 91 | <para>Delay the execution of <varname>RUN</varname> |
66f756d4 | 92 | instructions by the given number of seconds. This option |
6db27428 ZJS |
93 | might be useful when debugging system crashes during |
94 | coldplug caused by loading non-working kernel | |
95 | modules.</para> | |
63749b1a KS |
96 | </listitem> |
97 | </varlistentry> | |
dfdebb1b | 98 | |
9719859c | 99 | <varlistentry> |
a135d271 | 100 | <term><option>-t=</option></term> |
9719859c HR |
101 | <term><option>--event-timeout=</option></term> |
102 | <listitem> | |
dd5eddd2 | 103 | <para>Set the number of seconds to wait for events to finish. After |
b938cb90 | 104 | this time, the event will be terminated. The default is 180 seconds.</para> |
9719859c HR |
105 | </listitem> |
106 | </varlistentry> | |
107 | ||
63749b1a | 108 | <varlistentry> |
a135d271 | 109 | <term><option>-N=</option></term> |
9fa68615 | 110 | <term><option>--resolve-names=</option></term> |
63749b1a | 111 | <listitem> |
f13b388f | 112 | <para>Specify when systemd-udevd should resolve names of users and groups. |
73e231ab | 113 | When set to <option>early</option> (the default), names will be |
63749b1a | 114 | resolved when the rules are parsed. When set to |
73e231ab JE |
115 | <option>late</option>, names will be resolved for every event. |
116 | When set to <option>never</option>, names will never be resolved | |
63749b1a KS |
117 | and all devices will be owned by root.</para> |
118 | </listitem> | |
119 | </varlistentry> | |
dfdebb1b | 120 | |
a135d271 | 121 | <xi:include href="standard-options.xml" xpointer="help" /> |
dfdebb1b | 122 | <xi:include href="standard-options.xml" xpointer="version" /> |
63749b1a KS |
123 | </variablelist> |
124 | </refsect1> | |
420a506e | 125 | |
8f7f1a2b | 126 | <refsect1><title>Kernel command line</title> |
ccc9a4f9 | 127 | <variablelist class='kernel-commandline-options'> |
b8e8f0cb ZJS |
128 | <para>Parameters starting with "rd." will be read when |
129 | <command>systemd-udevd</command> is used in an initrd.</para> | |
8f7f1a2b | 130 | <varlistentry> |
1d84ad94 LP |
131 | <term><varname>udev.log_priority=</varname></term> |
132 | <term><varname>rd.udev.log_priority=</varname></term> | |
8f7f1a2b | 133 | <listitem> |
f47ad593 | 134 | <para>Set the log level.</para> |
8f7f1a2b KS |
135 | </listitem> |
136 | </varlistentry> | |
137 | <varlistentry> | |
1d84ad94 LP |
138 | <term><varname>udev.children_max=</varname></term> |
139 | <term><varname>rd.udev.children_max=</varname></term> | |
8f7f1a2b | 140 | <listitem> |
b8e8f0cb | 141 | <para>Limit the number of events executed in parallel.</para> |
8f7f1a2b KS |
142 | </listitem> |
143 | </varlistentry> | |
144 | <varlistentry> | |
1d84ad94 LP |
145 | <term><varname>udev.exec_delay=</varname></term> |
146 | <term><varname>rd.udev.exec_delay=</varname></term> | |
8f7f1a2b | 147 | <listitem> |
ed7e5fe3 | 148 | <para>Delay the execution of <varname>RUN</varname> instructions by the given |
b8e8f0cb ZJS |
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> | |
63749b1a KS |
152 | </listitem> |
153 | </varlistentry> | |
9719859c | 154 | <varlistentry> |
1d84ad94 LP |
155 | <term><varname>udev.event_timeout=</varname></term> |
156 | <term><varname>rd.udev.event_timeout=</varname></term> | |
9719859c HR |
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 | |
dd5eddd2 | 160 | terminated due to kernel drivers taking too long to initialize.</para> |
9719859c HR |
161 | </listitem> |
162 | </varlistentry> | |
0cf2d0d0 | 163 | <varlistentry> |
5a33334b | 164 | <term><varname>net.ifnames=</varname></term> |
0cf2d0d0 | 165 | <listitem> |
5a33334b | 166 | <para>Network interfaces are renamed to give them predictable names |
bcddd5bf | 167 | when possible. It is enabled by default; specifying 0 disables it.</para> |
0cf2d0d0 TG |
168 | </listitem> |
169 | </varlistentry> | |
f7e81fd9 LP |
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 | |
0b1e5b6e ZJS |
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> | |
06da5c63 ZJS |
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> | |
f7e81fd9 LP |
185 | </listitem> |
186 | </varlistentry> | |
63749b1a | 187 | </variablelist> |
0b1e5b6e ZJS |
188 | <!-- when adding entries here, consider also adding them in kernel-command-line.xml --> |
189 | </refsect1> | |
7b86ada7 | 190 | |
63749b1a KS |
191 | <refsect1> |
192 | <title>See Also</title> | |
6fc5a404 ZJS |
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> | |
63749b1a KS |
198 | </refsect1> |
199 | </refentry> |