From 88122cc5ed697cf5d946c4e43f7944990c817669 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sun, 16 Feb 2020 01:00:48 +0100 Subject: [PATCH] mesh-interfaces: try to fix network target dependency problems --- roles/mesh-interfaces/files/networking.service | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/mesh-interfaces/files/networking.service b/roles/mesh-interfaces/files/networking.service index 59a4760..bd5185f 100644 --- a/roles/mesh-interfaces/files/networking.service +++ b/roles/mesh-interfaces/files/networking.service @@ -1,7 +1,9 @@ [Unit] Description=ifupdown2 networking initialization Documentation=man:interfaces(5) man:ifup(8) man:ifdown(8) -Wants=network.target +DefaultDependencies=no +Before=shutdown.target +Conflicts=shutdown.target [Service] Type=oneshot @@ -13,5 +15,4 @@ ExecStop=/usr/share/ifupdown2/sbin/start-networking stop ExecReload=/usr/share/ifupdown2/sbin/start-networking reload [Install] -WantedBy=basic.target network.target multi-user.target -WantedBy=network-online.target +WantedBy=basic.target network.target network-online.target shutdown.target