From 18a388225035c0ed9897e0327006b501424249df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 10 Apr 2019 10:12:43 +0200 Subject: [PATCH] man: add a page for systemd-udev-settle.service --- man/rules/meson.build | 1 + man/systemd-udev-settle.service.xml | 51 ++++++++++++++++++++++++++++ man/udevadm.xml | 4 +++ units/systemd-udev-settle.service.in | 2 +- 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 man/systemd-udev-settle.service.xml diff --git a/man/rules/meson.build b/man/rules/meson.build index d949900ddc4..762e72cabe5 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -774,6 +774,7 @@ manpages = [ 'systemd-tmpfiles-setup.service'], ''], ['systemd-tty-ask-password-agent', '1', [], ''], + ['systemd-udev-settle.service', '8', [], ''], ['systemd-udevd.service', '8', ['systemd-udevd', diff --git a/man/systemd-udev-settle.service.xml b/man/systemd-udev-settle.service.xml new file mode 100644 index 00000000000..6fbd99111f6 --- /dev/null +++ b/man/systemd-udev-settle.service.xml @@ -0,0 +1,51 @@ + + + + + + + + systemd-udev-settle.service + systemd + + + + systemd-udev-settle.service + 8 + + + + systemd-udev-settle.service + Wait for all pending udev events to be handled + + + + systemd-udev-settle.service + + + Description + This service calls udevadm settle to wait until all events that have been queued + by udev7 have been + processed. It is a crude way to wait until "all" hardware has been discovered. Services may pull in this + service and order themselves after it to wait for the udev queue to be empty. + + Using this service is not recommended. There can be no guarantee that hardware + is fully discovered at any specific time, because the kernel does hardware detection asynchronously, and + certain busses and devices take a very long time to become ready, and also additional hardware may be + plugged in at any time. Instead, services should subscribe to udev events and react to any new hardware as + it is discovered. Services that, based on configuration, expect certain devices to appear, may warn or + report failure after a timeout. This timeout should be tailored to the hardware type. Waiting for + systemd-udev-settle.service usually slows boot significantly, because it means waiting + for all unrelated events too. + + + + See Also + + udev7, + udevadm8 + + + diff --git a/man/udevadm.xml b/man/udevadm.xml index 467402ca750..a591ab8c34d 100644 --- a/man/udevadm.xml +++ b/man/udevadm.xml @@ -362,6 +362,10 @@ + + See + systemd-udev-settle.service8 + for more information. udevadm control <replaceable>option</replaceable> diff --git a/units/systemd-udev-settle.service.in b/units/systemd-udev-settle.service.in index c9e1c918521..22ebf08c519 100644 --- a/units/systemd-udev-settle.service.in +++ b/units/systemd-udev-settle.service.in @@ -13,7 +13,7 @@ [Unit] Description=udev Wait for Complete Device Initialization -Documentation=man:udev(7) man:systemd-udevd.service(8) +Documentation=man:systemd-udev-settle.service(8) DefaultDependencies=no Wants=systemd-udevd.service After=systemd-udev-trigger.service -- 2.39.2