From d690124d4d895631bc9455cc1ad223b70954b200 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 7 Oct 2022 09:55:51 +0200 Subject: [PATCH] Improve connect-pod-service --- .../common/etc/systemd/system/connect-pod-service@.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/filesystem/common/etc/systemd/system/connect-pod-service@.service b/playbooks/filesystem/common/etc/systemd/system/connect-pod-service@.service index 135873b..675f019 100644 --- a/playbooks/filesystem/common/etc/systemd/system/connect-pod-service@.service +++ b/playbooks/filesystem/common/etc/systemd/system/connect-pod-service@.service @@ -4,4 +4,5 @@ After=network.target [Service] Type=oneshot -ExecStart=/usr/bin/sh -c '/usr/sbin/ifdown --ignore-errors veth-%i || /usr/bin/true ; /usr/sbin/ifup veth-%i' +ExecStartPre=-/usr/sbin/ifdown --ignore-errors veth-%i +ExecStart=/usr/sbin/ifup veth-%i