[systemd-devel] reliable way to check if udev is ready to serve requests

Lennart Poettering lennart at poettering.net
Thu Oct 11 06:54:00 UTC 2018


On Di, 09.10.18 22:24, Michael Biebl (mbiebl at gmail.com) wrote:

> Hi,
> 
> is there a reliable way to check from a shell script that udevd is
> running and able to serve request?
> Say you want to run "udevadm trigger" but only if udevd is actually
> able to process that request.
> 
> There is a udev_ctrl_send_ping() function, which looks like it could
> be perhaps used for those. Unfortunately this is not exposed via
> "udevadm control"

systemctl is-running systemd-udevd-kernel.socket

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list