As mentioned on IRC, the simplest solution is to bind the instanced service to the device via BindTo like this:
[Unit] Description=ifup for %I After=local-fs.target BindTo=sys-subsystem-net-devices-%i.device [Service] ExecStart=/sbin/ifup --allow=hotplug %I ExecStop=/sbin/ifdown %I RemainAfterExit=true This way we will call ExecStop automatically when the device is removed. In that case, net_ifdown() in net.agent can simply become no-op when systemd is used. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

