Update xdpfw.service
Added ExecStopPost to unload xdp program from an interface after the service is stopped.
This commit is contained in:
@@ -5,6 +5,7 @@ Requires=network-online.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/xdpfw
|
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
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user