]>
Commit | Line | Data |
---|---|---|
3802a3d3 | 1 | <?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*--> |
63749b1a | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
420a506e | 4 | |
f48f7543 ZJS |
5 | <!-- |
6 | SPDX-License-Identifier: LGPL-2.1+ | |
7 | ||
8 | This file is part of systemd. | |
9 | ||
10 | Copyright 2010-2013 Kay Sievers | |
11 | ||
12 | systemd is free software; you can redistribute it and/or modify it | |
13 | under the terms of the GNU Lesser General Public License as published by | |
14 | the Free Software Foundation; either version 2.1 of the License, or | |
15 | (at your option) any later version. | |
16 | ||
17 | systemd is distributed in the hope that it will be useful, but | |
18 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 | Lesser General Public License for more details. | |
21 | ||
22 | You should have received a copy of the GNU Lesser General Public License | |
23 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
24 | --> | |
25 | ||
dfdebb1b ZJS |
26 | <refentry id="systemd-udevd.service" |
27 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
28 | ||
63749b1a | 29 | <refentryinfo> |
49408357 | 30 | <title>systemd-udevd.service</title> |
d3a2386d KS |
31 | <productname>systemd</productname> |
32 | <authorgroup> | |
33 | <author> | |
34 | <contrib>Developer</contrib> | |
35 | <firstname>Kay</firstname> | |
36 | <surname>Sievers</surname> | |
37 | <email>kay@vrfy.org</email> | |
38 | </author> | |
39 | </authorgroup> | |
63749b1a | 40 | </refentryinfo> |
420a506e | 41 | |
63749b1a | 42 | <refmeta> |
bad1837c | 43 | <refentrytitle>systemd-udevd.service</refentrytitle> |
63749b1a | 44 | <manvolnum>8</manvolnum> |
63749b1a | 45 | </refmeta> |
420a506e | 46 | |
63749b1a | 47 | <refnamediv> |
51dfddc2 CG |
48 | <refname>systemd-udevd.service</refname> |
49 | <refname>systemd-udevd-control.socket</refname> | |
50 | <refname>systemd-udevd-kernel.socket</refname> | |
bad1837c | 51 | <refname>systemd-udevd</refname> |
b79f817b | 52 | <refpurpose>Device event managing daemon</refpurpose> |
63749b1a | 53 | </refnamediv> |
420a506e | 54 | |
63749b1a | 55 | <refsynopsisdiv> |
51dfddc2 CG |
56 | <para><filename>systemd-udevd.service</filename></para> |
57 | <para><filename>systemd-udevd-control.socket</filename></para> | |
58 | <para><filename>systemd-udevd-kernel.socket</filename></para> | |
b79f817b | 59 | |
63749b1a | 60 | <cmdsynopsis> |
12b42c76 | 61 | <command>/usr/lib/systemd/systemd-udevd</command> |
63749b1a | 62 | <arg><option>--daemon</option></arg> |
63749b1a | 63 | <arg><option>--debug</option></arg> |
9fa68615 KS |
64 | <arg><option>--children-max=</option></arg> |
65 | <arg><option>--exec-delay=</option></arg> | |
9719859c | 66 | <arg><option>--event-timeout=</option></arg> |
63749b1a | 67 | <arg><option>--resolve-names=early|late|never</option></arg> |
9fa68615 | 68 | <arg><option>--version</option></arg> |
63749b1a KS |
69 | <arg><option>--help</option></arg> |
70 | </cmdsynopsis> | |
b79f817b | 71 | |
63749b1a | 72 | </refsynopsisdiv> |
420a506e | 73 | |
63749b1a | 74 | <refsect1><title>Description</title> |
b8e8f0cb | 75 | <para><command>systemd-udevd</command> listens to kernel uevents. |
6fc5a404 ZJS |
76 | For every event, systemd-udevd executes matching instructions |
77 | specified in udev rules. See <citerefentry> | |
78 | <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum> | |
79 | </citerefentry>.</para> | |
80 | ||
203af57f ZJS |
81 | <para>The behavior of the daemon can be configured using |
82 | <citerefentry><refentrytitle>udev.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
81c7dd89 LP |
83 | its command line options, environment variables, and on the kernel |
84 | command line, or changed dynamically with <command>udevadm | |
203af57f | 85 | control</command>. |
6fc5a404 | 86 | </para> |
63749b1a | 87 | </refsect1> |
420a506e | 88 | |
63749b1a KS |
89 | <refsect1><title>Options</title> |
90 | <variablelist> | |
91 | <varlistentry> | |
a135d271 | 92 | <term><option>-d</option></term> |
63749b1a KS |
93 | <term><option>--daemon</option></term> |
94 | <listitem> | |
95 | <para>Detach and run in the background.</para> | |
96 | </listitem> | |
97 | </varlistentry> | |
dfdebb1b | 98 | |
63749b1a | 99 | <varlistentry> |
a135d271 | 100 | <term><option>-D</option></term> |
9fa68615 KS |
101 | <term><option>--debug</option></term> |
102 | <listitem> | |
6db27428 | 103 | <para>Print debug messages to standard error.</para> |
9fa68615 KS |
104 | </listitem> |
105 | </varlistentry> | |
dfdebb1b | 106 | |
9fa68615 | 107 | <varlistentry> |
a135d271 | 108 | <term><option>-c=</option></term> |
9fa68615 | 109 | <term><option>--children-max=</option></term> |
63749b1a | 110 | <listitem> |
b8e8f0cb | 111 | <para>Limit the number of events executed in parallel.</para> |
63749b1a KS |
112 | </listitem> |
113 | </varlistentry> | |
dfdebb1b | 114 | |
63749b1a | 115 | <varlistentry> |
a135d271 | 116 | <term><option>-e=</option></term> |
9fa68615 | 117 | <term><option>--exec-delay=</option></term> |
63749b1a | 118 | <listitem> |
6db27428 | 119 | <para>Delay the execution of <varname>RUN</varname> |
66f756d4 | 120 | instructions by the given number of seconds. This option |
6db27428 ZJS |
121 | might be useful when debugging system crashes during |
122 | coldplug caused by loading non-working kernel | |
123 | modules.</para> | |
63749b1a KS |
124 | </listitem> |
125 | </varlistentry> | |
dfdebb1b | 126 | |
9719859c | 127 | <varlistentry> |
a135d271 | 128 | <term><option>-t=</option></term> |
9719859c HR |
129 | <term><option>--event-timeout=</option></term> |
130 | <listitem> | |
dd5eddd2 | 131 | <para>Set the number of seconds to wait for events to finish. After |
b938cb90 | 132 | this time, the event will be terminated. The default is 180 seconds.</para> |
9719859c HR |
133 | </listitem> |
134 | </varlistentry> | |
135 | ||
63749b1a | 136 | <varlistentry> |
a135d271 | 137 | <term><option>-N=</option></term> |
9fa68615 | 138 | <term><option>--resolve-names=</option></term> |
63749b1a | 139 | <listitem> |
f13b388f | 140 | <para>Specify when systemd-udevd should resolve names of users and groups. |
73e231ab | 141 | When set to <option>early</option> (the default), names will be |
63749b1a | 142 | resolved when the rules are parsed. When set to |
73e231ab JE |
143 | <option>late</option>, names will be resolved for every event. |
144 | When set to <option>never</option>, names will never be resolved | |
63749b1a KS |
145 | and all devices will be owned by root.</para> |
146 | </listitem> | |
147 | </varlistentry> | |
dfdebb1b | 148 | |
a135d271 | 149 | <xi:include href="standard-options.xml" xpointer="help" /> |
dfdebb1b | 150 | <xi:include href="standard-options.xml" xpointer="version" /> |
63749b1a KS |
151 | </variablelist> |
152 | </refsect1> | |
420a506e | 153 | |
8f7f1a2b | 154 | <refsect1><title>Kernel command line</title> |
ccc9a4f9 | 155 | <variablelist class='kernel-commandline-options'> |
b8e8f0cb ZJS |
156 | <para>Parameters starting with "rd." will be read when |
157 | <command>systemd-udevd</command> is used in an initrd.</para> | |
8f7f1a2b | 158 | <varlistentry> |
1d84ad94 LP |
159 | <term><varname>udev.log_priority=</varname></term> |
160 | <term><varname>rd.udev.log_priority=</varname></term> | |
8f7f1a2b | 161 | <listitem> |
f47ad593 | 162 | <para>Set the log level.</para> |
8f7f1a2b KS |
163 | </listitem> |
164 | </varlistentry> | |
165 | <varlistentry> | |
1d84ad94 LP |
166 | <term><varname>udev.children_max=</varname></term> |
167 | <term><varname>rd.udev.children_max=</varname></term> | |
8f7f1a2b | 168 | <listitem> |
b8e8f0cb | 169 | <para>Limit the number of events executed in parallel.</para> |
8f7f1a2b KS |
170 | </listitem> |
171 | </varlistentry> | |
172 | <varlistentry> | |
1d84ad94 LP |
173 | <term><varname>udev.exec_delay=</varname></term> |
174 | <term><varname>rd.udev.exec_delay=</varname></term> | |
8f7f1a2b | 175 | <listitem> |
ed7e5fe3 | 176 | <para>Delay the execution of <varname>RUN</varname> instructions by the given |
b8e8f0cb ZJS |
177 | number of seconds. This option might be useful when |
178 | debugging system crashes during coldplug caused by loading | |
179 | non-working kernel modules.</para> | |
63749b1a KS |
180 | </listitem> |
181 | </varlistentry> | |
9719859c | 182 | <varlistentry> |
1d84ad94 LP |
183 | <term><varname>udev.event_timeout=</varname></term> |
184 | <term><varname>rd.udev.event_timeout=</varname></term> | |
9719859c HR |
185 | <listitem> |
186 | <para>Wait for events to finish up to the given number | |
187 | of seconds. This option might be useful if events are | |
dd5eddd2 | 188 | terminated due to kernel drivers taking too long to initialize.</para> |
9719859c HR |
189 | </listitem> |
190 | </varlistentry> | |
0cf2d0d0 | 191 | <varlistentry> |
5a33334b | 192 | <term><varname>net.ifnames=</varname></term> |
0cf2d0d0 | 193 | <listitem> |
5a33334b | 194 | <para>Network interfaces are renamed to give them predictable names |
bcddd5bf | 195 | when possible. It is enabled by default; specifying 0 disables it.</para> |
0cf2d0d0 TG |
196 | </listitem> |
197 | </varlistentry> | |
63749b1a | 198 | </variablelist> |
a057be1f ZJS |
199 | <!-- when adding entries here, consider also adding them |
200 | in kernel-command-line.xml --> | |
63749b1a | 201 | </refsect1> |
7b86ada7 | 202 | |
63749b1a KS |
203 | <refsect1> |
204 | <title>See Also</title> | |
6fc5a404 ZJS |
205 | <para> |
206 | <citerefentry><refentrytitle>udev.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
207 | <citerefentry><refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum></citerefentry>, | |
208 | <citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry> | |
209 | </para> | |
63749b1a KS |
210 | </refsect1> |
211 | </refentry> |