Package: ifupdown
Tags: patch

Here is proposed patch.

Since the unit type is oneshot, we can have multiple ExecStart statements.

Note that we have to use '--ignore-errors'. Otherwise if we have real
hotplug interface that is not present at the moment of restart, `ifup`
returns non-zero and systemd unit fail.


diff --git a/debian/networking.service b/debian/networking.service
index 593172b..7ad246b 100644
--- a/debian/networking.service
+++ b/debian/networking.service
@@ -16,6 +16,7 @@ WantedBy=network-online.target
 Type=oneshot
 EnvironmentFile=-/etc/default/networking
 ExecStart=/sbin/ifup -a --read-environment
+ExecStart=/sbin/ifup -a --allow=hotplug --ignore-errors --read-environment
 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo
 RemainAfterExit=true
 TimeoutStartSec=5min

Reply via email to