systemd/debian/ifup@.service
Michael Biebl e6a954ff04 Bind ifup@.service to the network device
This ensures that ifdown is run when the device is removed and the
service is stopped.  Closes: #660861, #703033

We eventually should rework that and instead of calling systemctl in
net.agent, start the service directly from the udev rule via
ENV{SYSTEMD_WANTS}.
2013-07-25 00:46:10 +02:00

10 lines
193 B
Desktop File

[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