Skip to content

Commit

Permalink
Update xdpfw.service
Browse files Browse the repository at this point in the history
Added ExecStopPost to unload xdp program from an interface after the service is stopped.
  • Loading branch information
omicronn88 authored Mar 27, 2022
1 parent ded517f commit f63c5f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions other/xdpfw.service
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f63c5f1

Please sign in to comment.