[systemd-devel] Launching a unit when a network interface is configured?
Toke Høiland-Jørgensen
toke at toke.dk
Sun Jul 12 15:31:11 PDT 2015
Mantas Mikulėnas <grawity at gmail.com> writes:
> So you really need this to be part of the configurator itself. As a
> direct equivalent to if-up.d, NetworkManager has dispatcher.d, but
> systemd-networkd doesn't yet have anything such.
Right, so I guess I'll have to interface with various configurators. Is
such a facility planned for systemd-networkd? Otherwise, consider this a
feature request :)
> However, both NM and networkd have "is-online" tools, for example,
> systemd-networkd-wait-online.service, which your unit can depend on.
> Note that by default it waits for *all* interfaces to be configured;
> if you only need a specific one, you can create your own
> (instanced/templated) version that would use "--interface=%i". See
> also `man systemd-networkd-wait-online`.
Ah, might be possible to work out something with that. Thanks for the
pointer!
-Toke
More information about the systemd-devel
mailing list