mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-01 02:08:57 +00:00
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}.
10 lines
193 B
Desktop File
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
|