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

2018-10-11 Thread Michael Biebl
Am Do., 11. Okt. 2018 um 08:54 Uhr schrieb Lennart Poettering
:
>
> On Di, 09.10.18 22:24, Michael Biebl (mbi...@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?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Use of SystemKeepFree=

2018-10-11 Thread Jan Synacek
Hello all,

looking at the current code, SystemKeepFree= is not accounted for when
doing vacuuming, only SystemMaxUse= is used. There was an ancient
RHEL-7 bug for systemd-219 with the exact same problem. Now I'm not
sure if that's actually a problem or not, but the documentation
suggests that SystemKeepFree= should be honored.

Is it a bug?

When is SystemKeepFree= actually used?

Why have SystemKeepFree= at all if it's the "other way around" of
SystemMaxUse= ?

Cheers,
-- 
Jan Synacek
Software Engineer, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2018-10-11 Thread Lennart Poettering
On Di, 09.10.18 22:24, Michael Biebl (mbi...@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
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel