From f63c5f1f23a47f168ac2df34b459ff2f51c5fcfa Mon Sep 17 00:00:00 2001 From: omicronn88 <75748533+omicronn88@users.noreply.github.com> Date: Sun, 27 Mar 2022 11:12:52 +0300 Subject: [PATCH] Update xdpfw.service Added ExecStopPost to unload xdp program from an interface after the service is stopped. --- other/xdpfw.service | 1 + 1 file changed, 1 insertion(+) diff --git a/other/xdpfw.service b/other/xdpfw.service index 79409c2..11d2fcd 100644 --- a/other/xdpfw.service +++ b/other/xdpfw.service @@ -5,6 +5,7 @@ Requires=network-online.target [Service] ExecStart=/usr/bin/xdpfw +ExecStopPost=/bin/bash -c "ip link set dev $(grep -E ^interface /etc/xdpfw/xdpfw.conf | sed -En 's/^.+=|[\"; ]//gp') xdp off" Restart=always [Install]