On Tue, Feb 28, 2017 at 04:49:28PM +0100, Maciej Delmanowski wrote:

> > You can still use "ifdown br0" and "ifup br0" if this an auto interface.
> > But I get your point, that then the resulting processes are no longer
> > part of networking.service or a specific cgroup which can be used to
> > reliably kill all process started by ifup.
> 
> Yes, they end up in current user's session CGroup. If 'systemd' is configured
> to kill user processes after logout, this would result in even more broken
> configuration.
> 
> > I think, one solution for this would be, if ifupdown would use
> > [email protected] for auto interfaces as well, and networking.service would
> > simply become a wrapper/dummy service/target which simply triggers the
> > start of all auto interfaces as instances of [email protected].
> 
> That would be fantastic, my wrapper wouldn't be needed in this case.

The big issue here is: who is managing the interfaces? Ifupdown or
systemd? Currently With ifupdown providing 80-ifupdown.rules and
ifup@service, hotplug interfaces are actually managed by systemd, it
just is using ifupdown as a low level tool to do the interface
configuration. Calling ifup/ifdown manually on those interferes with
systemd. If we also want all auto interfaces to be systemd-managed, then
there should be a distinction between ifup/ifdown being called from
systemd and ifup/ifdown being called manually. In the latter case, it
should then just do "systemd start/stop ifup@$IFACE".

Maybe it is better to remove the current split between hotplug and other
interfaces, and have everything managed by ifupdown again. But as you
say, the issue then is cgroups, so ifupdown then has to learn to start
its processes in its own dedicated cgroup.

I don't like the other option of having all interfaces be systemd
services. If you want that, I think you're better off converting to
systemd-networkd.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to