2014-11-21 22:44:48 +03:00
<?xml version='1.0'?> <!-- * - Mode: nxml; nxml - child - indent: 2; indent - tabs - mode: nil - * -->
2010-05-24 19:00:15 +04:00
< !DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2015-06-18 20:47:44 +03:00
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
2005-08-30 06:41:42 +04:00
2017-11-18 19:52:56 +03:00
<!--
SPDX-License-Identifier: LGPL-2.1+
This file is part of systemd.
Copyright 2010-2013 Kay Sievers
-->
2014-02-13 23:33:51 +04:00
<refentry id= "systemd-udevd.service"
xmlns:xi="http://www.w3.org/2001/XInclude">
2010-05-24 19:00:15 +04:00
<refentryinfo >
2012-06-26 02:12:00 +04:00
<title > systemd-udevd.service</title>
2012-04-04 16:42:32 +04:00
<productname > systemd</productname>
<authorgroup >
<author >
<contrib > Developer</contrib>
<firstname > Kay</firstname>
<surname > Sievers</surname>
<email > kay@vrfy.org</email>
</author>
</authorgroup>
2010-05-24 19:00:15 +04:00
</refentryinfo>
2005-08-30 06:41:42 +04:00
2010-05-24 19:00:15 +04:00
<refmeta >
2012-07-29 13:58:41 +04:00
<refentrytitle > systemd-udevd.service</refentrytitle>
2010-05-24 19:00:15 +04:00
<manvolnum > 8</manvolnum>
</refmeta>
2005-08-30 06:41:42 +04:00
2010-05-24 19:00:15 +04:00
<refnamediv >
2012-07-02 23:35:14 +04:00
<refname > systemd-udevd.service</refname>
<refname > systemd-udevd-control.socket</refname>
<refname > systemd-udevd-kernel.socket</refname>
2012-07-29 13:58:41 +04:00
<refname > systemd-udevd</refname>
2012-06-22 12:38:40 +04:00
<refpurpose > Device event managing daemon</refpurpose>
2010-05-24 19:00:15 +04:00
</refnamediv>
2005-08-30 06:41:42 +04:00
2010-05-24 19:00:15 +04:00
<refsynopsisdiv >
2012-07-02 23:35:14 +04:00
<para > <filename > systemd-udevd.service</filename> </para>
<para > <filename > systemd-udevd-control.socket</filename> </para>
<para > <filename > systemd-udevd-kernel.socket</filename> </para>
2012-06-22 12:38:40 +04:00
2010-05-24 19:00:15 +04:00
<cmdsynopsis >
2015-06-18 20:47:44 +03:00
<command > /usr/lib/systemd/systemd-udevd</command>
2010-05-24 19:00:15 +04:00
<arg > <option > --daemon</option> </arg>
<arg > <option > --debug</option> </arg>
2010-05-28 17:11:36 +04:00
<arg > <option > --children-max=</option> </arg>
<arg > <option > --exec-delay=</option> </arg>
2014-07-29 11:06:14 +04:00
<arg > <option > --event-timeout=</option> </arg>
2010-05-24 19:00:15 +04:00
<arg > <option > --resolve-names=early|late|never</option> </arg>
2010-05-28 17:11:36 +04:00
<arg > <option > --version</option> </arg>
2010-05-24 19:00:15 +04:00
<arg > <option > --help</option> </arg>
</cmdsynopsis>
2012-06-22 12:38:40 +04:00
2010-05-24 19:00:15 +04:00
</refsynopsisdiv>
2005-08-30 06:41:42 +04:00
2010-05-24 19:00:15 +04:00
<refsect1 > <title > Description</title>
2012-07-29 01:10:15 +04:00
<para > <command > systemd-udevd</command> listens to kernel uevents.
2014-07-31 12:01:19 +04:00
For every event, systemd-udevd executes matching instructions
specified in udev rules. See <citerefentry >
<refentrytitle > udev</refentrytitle> <manvolnum > 7</manvolnum>
</citerefentry> .</para>
2014-10-23 08:12:50 +04:00
<para > The behavior of the daemon can be configured using
<citerefentry > <refentrytitle > udev.conf</refentrytitle> <manvolnum > 5</manvolnum> </citerefentry> ,
2014-11-06 22:06:30 +03:00
its command line options, environment variables, and on the kernel
command line, or changed dynamically with <command > udevadm
2014-10-23 08:12:50 +04:00
control</command> .
2014-07-31 12:01:19 +04:00
</para>
2010-05-24 19:00:15 +04:00
</refsect1>
2005-08-30 06:41:42 +04:00
2010-05-24 19:00:15 +04:00
<refsect1 > <title > Options</title>
<variablelist >
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -d</option> </term>
2010-05-24 19:00:15 +04:00
<term > <option > --daemon</option> </term>
<listitem >
<para > Detach and run in the background.</para>
</listitem>
</varlistentry>
2014-02-13 23:33:51 +04:00
2010-05-24 19:00:15 +04:00
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -D</option> </term>
2010-05-28 17:11:36 +04:00
<term > <option > --debug</option> </term>
<listitem >
2014-02-15 07:00:06 +04:00
<para > Print debug messages to standard error.</para>
2010-05-28 17:11:36 +04:00
</listitem>
</varlistentry>
2014-02-13 23:33:51 +04:00
2010-05-28 17:11:36 +04:00
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -c=</option> </term>
2010-05-28 17:11:36 +04:00
<term > <option > --children-max=</option> </term>
2010-05-24 19:00:15 +04:00
<listitem >
2012-07-29 01:10:15 +04:00
<para > Limit the number of events executed in parallel.</para>
2010-05-24 19:00:15 +04:00
</listitem>
</varlistentry>
2014-02-13 23:33:51 +04:00
2010-05-24 19:00:15 +04:00
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -e=</option> </term>
2010-05-28 17:11:36 +04:00
<term > <option > --exec-delay=</option> </term>
2010-05-24 19:00:15 +04:00
<listitem >
2014-02-15 07:00:06 +04:00
<para > Delay the execution of <varname > RUN</varname>
2014-02-17 06:37:18 +04:00
instructions by the given number of seconds. This option
2014-02-15 07:00:06 +04:00
might be useful when debugging system crashes during
coldplug caused by loading non-working kernel
modules.</para>
2010-05-24 19:00:15 +04:00
</listitem>
</varlistentry>
2014-02-13 23:33:51 +04:00
2014-07-29 11:06:14 +04:00
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -t=</option> </term>
2014-07-29 11:06:14 +04:00
<term > <option > --event-timeout=</option> </term>
<listitem >
2014-07-29 17:18:27 +04:00
<para > Set the number of seconds to wait for events to finish. After
2014-08-03 09:11:12 +04:00
this time, the event will be terminated. The default is 180 seconds.</para>
2014-07-29 11:06:14 +04:00
</listitem>
</varlistentry>
2010-05-24 19:00:15 +04:00
<varlistentry >
2017-12-04 07:33:46 +03:00
<term > <option > -N=</option> </term>
2010-05-28 17:11:36 +04:00
<term > <option > --resolve-names=</option> </term>
2010-05-24 19:00:15 +04:00
<listitem >
2012-04-17 01:32:22 +04:00
<para > Specify when systemd-udevd should resolve names of users and groups.
2014-02-17 06:37:13 +04:00
When set to <option > early</option> (the default), names will be
2010-05-24 19:00:15 +04:00
resolved when the rules are parsed. When set to
2014-02-17 06:37:13 +04:00
<option > late</option> , names will be resolved for every event.
When set to <option > never</option> , names will never be resolved
2010-05-24 19:00:15 +04:00
and all devices will be owned by root.</para>
</listitem>
</varlistentry>
2014-02-13 23:33:51 +04:00
2017-12-04 07:33:46 +03:00
<xi:include href= "standard-options.xml" xpointer= "help" />
2014-02-13 23:33:51 +04:00
<xi:include href= "standard-options.xml" xpointer= "version" />
2010-05-24 19:00:15 +04:00
</variablelist>
</refsect1>
2005-08-30 06:41:42 +04:00
2010-05-30 00:23:48 +04:00
<refsect1 > <title > Kernel command line</title>
2013-01-26 19:47:16 +04:00
<variablelist class= 'kernel-commandline-options' >
2012-07-29 01:10:15 +04:00
<para > Parameters starting with "rd." will be read when
<command > systemd-udevd</command> is used in an initrd.</para>
2010-05-30 00:23:48 +04:00
<varlistentry >
util-lib: various improvements to kernel command line parsing
This improves kernel command line parsing in a number of ways:
a) An kernel option "foo_bar=xyz" is now considered equivalent to
"foo-bar-xyz", i.e. when comparing kernel command line option names "-" and
"_" are now considered equivalent (this only applies to the option names
though, not the option values!). Most of our kernel options used "-" as word
separator in kernel command line options so far, but some used "_". With
this change, which was a source of confusion for users (well, at least of
one user: myself, I just couldn't remember that it's systemd.debug-shell,
not systemd.debug_shell). Considering both as equivalent is inspired how
modern kernel module loading normalizes all kernel module names to use
underscores now too.
b) All options previously using a dash for separating words in kernel command
line options now use an underscore instead, in all documentation and in
code. Since a) has been implemented this should not create any compatibility
problems, but normalizes our documentation and our code.
c) All kernel command line options which take booleans (or are boolean-like)
have been reworked so that "foobar" (without argument) is now equivalent to
"foobar=1" (but not "foobar=0"), thus normalizing the handling of our
boolean arguments. Specifically this means systemd.debug-shell and
systemd_debug_shell=1 are now entirely equivalent.
d) All kernel command line options which take an argument, and where no
argument is specified will now result in a log message. e.g. passing just
"systemd.unit" will no result in a complain that it needs an argument. This
is implemented in the proc_cmdline_missing_value() function.
e) There's now a call proc_cmdline_get_bool() similar to proc_cmdline_get_key()
that parses booleans (following the logic explained in c).
f) The proc_cmdline_parse() call's boolean argument has been replaced by a new
flags argument that takes a common set of bits with proc_cmdline_get_key().
g) All kernel command line APIs now begin with the same "proc_cmdline_" prefix.
h) There are now tests for much of this. Yay!
2016-12-12 20:29:15 +03:00
<term > <varname > udev.log_priority=</varname> </term>
<term > <varname > rd.udev.log_priority=</varname> </term>
2010-05-30 00:23:48 +04:00
<listitem >
2014-11-01 21:33:01 +03:00
<para > Set the log level.</para>
2010-05-30 00:23:48 +04:00
</listitem>
</varlistentry>
<varlistentry >
util-lib: various improvements to kernel command line parsing
This improves kernel command line parsing in a number of ways:
a) An kernel option "foo_bar=xyz" is now considered equivalent to
"foo-bar-xyz", i.e. when comparing kernel command line option names "-" and
"_" are now considered equivalent (this only applies to the option names
though, not the option values!). Most of our kernel options used "-" as word
separator in kernel command line options so far, but some used "_". With
this change, which was a source of confusion for users (well, at least of
one user: myself, I just couldn't remember that it's systemd.debug-shell,
not systemd.debug_shell). Considering both as equivalent is inspired how
modern kernel module loading normalizes all kernel module names to use
underscores now too.
b) All options previously using a dash for separating words in kernel command
line options now use an underscore instead, in all documentation and in
code. Since a) has been implemented this should not create any compatibility
problems, but normalizes our documentation and our code.
c) All kernel command line options which take booleans (or are boolean-like)
have been reworked so that "foobar" (without argument) is now equivalent to
"foobar=1" (but not "foobar=0"), thus normalizing the handling of our
boolean arguments. Specifically this means systemd.debug-shell and
systemd_debug_shell=1 are now entirely equivalent.
d) All kernel command line options which take an argument, and where no
argument is specified will now result in a log message. e.g. passing just
"systemd.unit" will no result in a complain that it needs an argument. This
is implemented in the proc_cmdline_missing_value() function.
e) There's now a call proc_cmdline_get_bool() similar to proc_cmdline_get_key()
that parses booleans (following the logic explained in c).
f) The proc_cmdline_parse() call's boolean argument has been replaced by a new
flags argument that takes a common set of bits with proc_cmdline_get_key().
g) All kernel command line APIs now begin with the same "proc_cmdline_" prefix.
h) There are now tests for much of this. Yay!
2016-12-12 20:29:15 +03:00
<term > <varname > udev.children_max=</varname> </term>
<term > <varname > rd.udev.children_max=</varname> </term>
2010-05-30 00:23:48 +04:00
<listitem >
2012-07-29 01:10:15 +04:00
<para > Limit the number of events executed in parallel.</para>
2010-05-30 00:23:48 +04:00
</listitem>
</varlistentry>
<varlistentry >
util-lib: various improvements to kernel command line parsing
This improves kernel command line parsing in a number of ways:
a) An kernel option "foo_bar=xyz" is now considered equivalent to
"foo-bar-xyz", i.e. when comparing kernel command line option names "-" and
"_" are now considered equivalent (this only applies to the option names
though, not the option values!). Most of our kernel options used "-" as word
separator in kernel command line options so far, but some used "_". With
this change, which was a source of confusion for users (well, at least of
one user: myself, I just couldn't remember that it's systemd.debug-shell,
not systemd.debug_shell). Considering both as equivalent is inspired how
modern kernel module loading normalizes all kernel module names to use
underscores now too.
b) All options previously using a dash for separating words in kernel command
line options now use an underscore instead, in all documentation and in
code. Since a) has been implemented this should not create any compatibility
problems, but normalizes our documentation and our code.
c) All kernel command line options which take booleans (or are boolean-like)
have been reworked so that "foobar" (without argument) is now equivalent to
"foobar=1" (but not "foobar=0"), thus normalizing the handling of our
boolean arguments. Specifically this means systemd.debug-shell and
systemd_debug_shell=1 are now entirely equivalent.
d) All kernel command line options which take an argument, and where no
argument is specified will now result in a log message. e.g. passing just
"systemd.unit" will no result in a complain that it needs an argument. This
is implemented in the proc_cmdline_missing_value() function.
e) There's now a call proc_cmdline_get_bool() similar to proc_cmdline_get_key()
that parses booleans (following the logic explained in c).
f) The proc_cmdline_parse() call's boolean argument has been replaced by a new
flags argument that takes a common set of bits with proc_cmdline_get_key().
g) All kernel command line APIs now begin with the same "proc_cmdline_" prefix.
h) There are now tests for much of this. Yay!
2016-12-12 20:29:15 +03:00
<term > <varname > udev.exec_delay=</varname> </term>
<term > <varname > rd.udev.exec_delay=</varname> </term>
2010-05-30 00:23:48 +04:00
<listitem >
2014-02-17 18:43:36 +04:00
<para > Delay the execution of <varname > RUN</varname> instructions by the given
2012-07-29 01:10:15 +04:00
number of seconds. This option might be useful when
debugging system crashes during coldplug caused by loading
non-working kernel modules.</para>
2010-05-24 19:00:15 +04:00
</listitem>
</varlistentry>
2014-07-29 11:06:14 +04:00
<varlistentry >
util-lib: various improvements to kernel command line parsing
This improves kernel command line parsing in a number of ways:
a) An kernel option "foo_bar=xyz" is now considered equivalent to
"foo-bar-xyz", i.e. when comparing kernel command line option names "-" and
"_" are now considered equivalent (this only applies to the option names
though, not the option values!). Most of our kernel options used "-" as word
separator in kernel command line options so far, but some used "_". With
this change, which was a source of confusion for users (well, at least of
one user: myself, I just couldn't remember that it's systemd.debug-shell,
not systemd.debug_shell). Considering both as equivalent is inspired how
modern kernel module loading normalizes all kernel module names to use
underscores now too.
b) All options previously using a dash for separating words in kernel command
line options now use an underscore instead, in all documentation and in
code. Since a) has been implemented this should not create any compatibility
problems, but normalizes our documentation and our code.
c) All kernel command line options which take booleans (or are boolean-like)
have been reworked so that "foobar" (without argument) is now equivalent to
"foobar=1" (but not "foobar=0"), thus normalizing the handling of our
boolean arguments. Specifically this means systemd.debug-shell and
systemd_debug_shell=1 are now entirely equivalent.
d) All kernel command line options which take an argument, and where no
argument is specified will now result in a log message. e.g. passing just
"systemd.unit" will no result in a complain that it needs an argument. This
is implemented in the proc_cmdline_missing_value() function.
e) There's now a call proc_cmdline_get_bool() similar to proc_cmdline_get_key()
that parses booleans (following the logic explained in c).
f) The proc_cmdline_parse() call's boolean argument has been replaced by a new
flags argument that takes a common set of bits with proc_cmdline_get_key().
g) All kernel command line APIs now begin with the same "proc_cmdline_" prefix.
h) There are now tests for much of this. Yay!
2016-12-12 20:29:15 +03:00
<term > <varname > udev.event_timeout=</varname> </term>
<term > <varname > rd.udev.event_timeout=</varname> </term>
2014-07-29 11:06:14 +04:00
<listitem >
<para > Wait for events to finish up to the given number
of seconds. This option might be useful if events are
2014-07-29 17:18:27 +04:00
terminated due to kernel drivers taking too long to initialize.</para>
2014-07-29 11:06:14 +04:00
</listitem>
</varlistentry>
2013-03-17 08:23:33 +04:00
<varlistentry >
2013-03-18 22:31:34 +04:00
<term > <varname > net.ifnames=</varname> </term>
2013-03-17 08:23:33 +04:00
<listitem >
2013-03-18 22:31:34 +04:00
<para > Network interfaces are renamed to give them predictable names
2014-02-14 05:25:23 +04:00
when possible. It is enabled by default; specifying 0 disables it.</para>
2013-03-17 08:23:33 +04:00
</listitem>
</varlistentry>
2010-05-24 19:00:15 +04:00
</variablelist>
2013-05-23 05:11:29 +04:00
<!-- when adding entries here, consider also adding them
in kernel-command-line.xml -->
2010-05-24 19:00:15 +04:00
</refsect1>
2005-08-31 01:30:52 +04:00
2010-05-24 19:00:15 +04:00
<refsect1 >
<title > See Also</title>
2014-07-31 12:01:19 +04:00
<para >
<citerefentry > <refentrytitle > udev.conf</refentrytitle> <manvolnum > 5</manvolnum> </citerefentry> ,
<citerefentry > <refentrytitle > udev</refentrytitle> <manvolnum > 7</manvolnum> </citerefentry> ,
<citerefentry > <refentrytitle > udevadm</refentrytitle> <manvolnum > 8</manvolnum> </citerefentry>
</para>
2010-05-24 19:00:15 +04:00
</refsect1>
</refentry>