Skip to content

Commit

Permalink
fix(ns-binding): destroy table on stop
Browse files Browse the repository at this point in the history
Avoid to block traffic when the service is stopped
  • Loading branch information
gsanchietti committed Dec 3, 2024
1 parent 1608287 commit 5543977
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/ns-binding/files/ns-binding.init
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ start_service() {
procd_close_instance
}

stop_service() {
# Destroy nft table
/usr/sbin/nft delete table inet ns-binding &> /dev/null
}

service_triggers()
{
procd_add_reload_trigger dhcp
Expand Down

0 comments on commit 5543977

Please sign in to comment.