[systemd-devel] systemd-networkd-wait-online

Lennart Poettering lennart at poettering.net
Mon Dec 11 20:01:41 UTC 2017


On Fr, 08.12.17 20:54, Johannes Ernst (johannes.ernst at gmail.com) wrote:

> Thanks. I’m not surprised that work remains ...
> 
> Related question: systemd-networkd-wait-online.target seems to
> assume that once the network is online, it stays that way. I’d like
> to also take action when it goes down, and again when it comes back
> up. Any pointers how to best go about this? Is there an inverse of
> the systemd-networkd-wait-online executable?

No, targets are not supposed to fully track system state. If you want
to track network up/down cycles use the rtnetlink API. Sorry.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list