Bug#798625: systemd-networkd: Runs arbitrary inappropriate scripts on network changes
Martin Pitt
mpitt at debian.org
Sun Sep 20 15:34:14 BST 2015
Michael Biebl [2015-09-20 16:18 +0200]:
> hooks under ifupdown afaik *do* run synchronous and ifupdown waits for
> the hooks to complete.
> That means a hook can return a non-zero exit code to abort the bring up
> of the interface. Afaics, this is required so hooks can *extend* the
> functionality of ifupdown.
> I think this is the change of behaviour Josh is talking about.
A failed if-up.d/ hook will indeed stop any subsequent hooks to be run
(under ifupdown/NM/networkd), and ifupdown will then not consider it
as being "up", but it will not tear down the interface again: it's up,
has IPs, routes, DNS, etc.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the Pkg-systemd-maintainers
mailing list