| 1 |
<?xml version='1.0'?> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refentry id="udev.conf" |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
|
| 9 |
<refentryinfo> |
| 10 |
<title>udev.conf</title> |
| 11 |
<productname>systemd</productname> |
| 12 |
</refentryinfo> |
| 13 |
|
| 14 |
<refmeta> |
| 15 |
<refentrytitle>udev.conf</refentrytitle> |
| 16 |
<manvolnum>5</manvolnum> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>udev.conf</refname> |
| 21 |
<refname>udev.conf.d</refname> |
| 22 |
<refpurpose>Configuration for device event managing daemon</refpurpose> |
| 23 |
</refnamediv> |
| 24 |
|
| 25 |
<refsynopsisdiv> |
| 26 |
<para> |
| 27 |
<simplelist> |
| 28 |
<member><filename>/etc/udev/udev.conf</filename></member> |
| 29 |
<member><filename>/run/udev/udev.conf</filename></member> |
| 30 |
<member><filename>/usr/local/lib/udev/udev.conf</filename></member> |
| 31 |
<member><filename>/usr/lib/udev/udev.conf</filename></member> |
| 32 |
<member><filename>/etc/udev/udev.conf.d/*.conf</filename></member> |
| 33 |
<member><filename>/run/udev/udev.conf.d/*.conf</filename></member> |
| 34 |
<member><filename>/usr/local/lib/udev/udev.conf.d/*.conf</filename></member> |
| 35 |
<member><filename>/usr/lib/udev/udev.conf.d/*.conf</filename></member> |
| 36 |
</simplelist> |
| 37 |
</para> |
| 38 |
</refsynopsisdiv> |
| 39 |
|
| 40 |
<refsect1> |
| 41 |
<title>Description</title> |
| 42 |
|
| 43 |
<para>These files contain configuration options for |
| 44 |
<citerefentry><refentrytitle>systemd-udevd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. |
| 45 |
The syntax of these files is very simple: a list |
| 46 |
of assignments, one per line. |
| 47 |
All empty lines or lines beginning with <literal>#</literal> are |
| 48 |
ignored. |
| 49 |
</para> |
| 50 |
<para> |
| 51 |
The following options can be set: |
| 52 |
</para> |
| 53 |
|
| 54 |
<variablelist class='config-directives'> |
| 55 |
<varlistentry> |
| 56 |
<term><varname>udev_log=</varname></term> |
| 57 |
|
| 58 |
<listitem> |
| 59 |
<para>The log level. Valid values are the numerical |
| 60 |
syslog priorities or their textual representations: |
| 61 |
<option>err</option>, <option>info</option> and |
| 62 |
<option>debug</option>.</para> |
| 63 |
|
| 64 |
<note> |
| 65 |
<para>This option is also honored by |
| 66 |
<citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry>. |
| 67 |
</para> |
| 68 |
</note> |
| 69 |
|
| 70 |
<xi:include href="version-info.xml" xpointer="v216"/> |
| 71 |
</listitem> |
| 72 |
</varlistentry> |
| 73 |
|
| 74 |
<varlistentry> |
| 75 |
<term><varname>children_max=</varname></term> |
| 76 |
|
| 77 |
<listitem> |
| 78 |
<para>An integer. The maximum number of events executed in parallel. When unspecified or 0 is |
| 79 |
specified, the maximum is determined based on the system resources.</para> |
| 80 |
|
| 81 |
<para>This is the same as the <option>--children-max=</option> option.</para> |
| 82 |
|
| 83 |
<xi:include href="version-info.xml" xpointer="v240"/> |
| 84 |
</listitem> |
| 85 |
</varlistentry> |
| 86 |
|
| 87 |
<varlistentry> |
| 88 |
<term><varname>exec_delay=</varname></term> |
| 89 |
|
| 90 |
<listitem> |
| 91 |
<para>An integer. Delay the execution of each <varname>RUN{<replaceable>program</replaceable>}</varname> |
| 92 |
parameter 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> |
| 96 |
|
| 97 |
<para>This is the same as the <option>--exec-delay=</option> option.</para> |
| 98 |
|
| 99 |
<xi:include href="version-info.xml" xpointer="v240"/> |
| 100 |
</listitem> |
| 101 |
</varlistentry> |
| 102 |
|
| 103 |
<varlistentry> |
| 104 |
<term><varname>event_timeout=</varname></term> |
| 105 |
|
| 106 |
<listitem> |
| 107 |
<para>An integer. The number of seconds to wait for events to finish. After |
| 108 |
this time, the event will be terminated. The default is 180 seconds.</para> |
| 109 |
|
| 110 |
<para>This is the same as the <option>--event-timeout=</option> option.</para> |
| 111 |
|
| 112 |
<xi:include href="version-info.xml" xpointer="v240"/> |
| 113 |
</listitem> |
| 114 |
</varlistentry> |
| 115 |
|
| 116 |
<varlistentry> |
| 117 |
<term><varname>resolve_names=</varname></term> |
| 118 |
|
| 119 |
<listitem> |
| 120 |
<para>Specifies when systemd-udevd should resolve names of users and groups. When set to |
| 121 |
<option>early</option> (the default), names will be resolved when the rules are parsed. |
| 122 |
When set to <option>late</option>, names will be resolved for every event. When set to |
| 123 |
<option>never</option>, names will never be resolved and all devices will be owned by |
| 124 |
root.</para> |
| 125 |
|
| 126 |
<para>This is the same as the <option>--resolve-names=</option> option.</para> |
| 127 |
|
| 128 |
<xi:include href="version-info.xml" xpointer="v240"/> |
| 129 |
</listitem> |
| 130 |
</varlistentry> |
| 131 |
|
| 132 |
<varlistentry> |
| 133 |
<term><varname>timeout_signal=</varname></term> |
| 134 |
|
| 135 |
<listitem> |
| 136 |
<para>Specifies a signal that <filename>systemd-udevd</filename> will send on worker |
| 137 |
timeouts. Note that both workers and spawned processes will be killed using this |
| 138 |
signal. Defaults to <option>SIGKILL</option>.</para> |
| 139 |
|
| 140 |
<xi:include href="version-info.xml" xpointer="v246"/> |
| 141 |
</listitem> |
| 142 |
</varlistentry> |
| 143 |
</variablelist> |
| 144 |
|
| 145 |
<para> |
| 146 |
In addition, <filename>systemd-udevd</filename> can be configured |
| 147 |
by command line options and the kernel command line (see |
| 148 |
<citerefentry><refentrytitle>systemd-udevd</refentrytitle><manvolnum>8</manvolnum></citerefentry>). |
| 149 |
</para> |
| 150 |
</refsect1> |
| 151 |
|
| 152 |
<refsect1> |
| 153 |
<title>See Also</title> |
| 154 |
<para><simplelist type="inline"> |
| 155 |
<member><citerefentry><refentrytitle>systemd-udevd</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 156 |
<member><citerefentry><refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> |
| 157 |
<member><citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 158 |
</simplelist></para> |
| 159 |
</refsect1> |
| 160 |
</refentry> |