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

Michael Biebl mbiebl at gmail.com
Fri Oct 12 01:57:15 UTC 2018


Am Do., 11. Okt. 2018 um 08:54 Uhr schrieb Lennart Poettering
<lennart at poettering.net>:
>
> 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

I forgot to add, that systemd-udevd is not necessarily started by
systemd in this particular case. So I can't use systemctl...


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list