Comment 7 for bug 1726856

Revision history for this message
Marcos Felipe Mello (marcosfrm) wrote :

You need

Before=network-pre.target
Wants=network-pre.target

(Wants is necessary because network-pre.target is a passive target)
(Before=network.target can be removed)

And then network management software needs to have After=network-pre.target. systemd-networkd and NetworkManager are fine, but I do not know about legacy stuff like ifupdown.

BTW, why DefaultDependencies=no is being set?

network-pre.target is systemd 214+. Since Debian Jessie has 215, it is probably safe use it.