Matthias Urlichs <matth...@urlichs.de> writes:
> On 09.07.24 12:27, Bjørn Mork wrote:
>> Run user scripts on up/down events.  That's a huge blank spot in
>> systemd-networkd.  And by design, so it's really not fixable.
>
> Well, I've been apt-purging ifupdown for almost a decade by now and
> didn't yet miss any of it.
>
>
> You can think whether that script is still required; maybe
> systemd-networkd / -resolved can do it for you.
>
> Or you can monitor systemd's and systemd-networkd's dbus for network
> devices appearing (or vanishing) and run the requisite script.
>
> Or you can use udev rules.
>
> Or you can tell a unit to run only when a specific network interface
> is present.
>
> Or you can use NM and its script dispatcher instead.
>
> Or, well, you can of course continue to use ifupdown if none of the
> above work for you. But that doesn't mean ifupdown should be the
> default IMHO.

FWIW, I agree with all that.

Just tried to point out that automatic conversion will be hard.  And
probably not very useful. Many of the old ifupdown configs should be
redone and re-thought rather than reimplemented.  There are most likely
better ways to do much of it, using the new possibilities you get with
NM and systemd-networkd.



Bjørn

Reply via email to