Skip to content

Commit

Permalink
Merge pull request #929 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - Handling of priority items on SIGTERM
  • Loading branch information
UltraInstinct14 authored Jan 11, 2025
2 parents 6942479 + 41a04be commit 95a4275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion loxilb-ebpf
6 changes: 3 additions & 3 deletions pkg/loxinet/loxinet.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ func loxiNetTicker(bgpPeerMode bool) {
pprof.StopCPUProfile()
} else if sig == syscall.SIGINT || sig == syscall.SIGTERM {
tk.LogIt(tk.LogCritical, "Shutdown on sig %v\n", sig)
if !bgpPeerMode {
mh.dpEbpf.DpEbpfUnInit()
}
// TODO - More subsystem cleanup TBD
mh.zr.Rules.RuleDestructAll()
if mh.cloudHook != nil {
Expand All @@ -188,9 +191,6 @@ func loxiNetTicker(bgpPeerMode bool) {
}
}
}
if !bgpPeerMode {
mh.dpEbpf.DpEbpfUnInit()
}
mh.has.CIDestroy()
apiserver.ApiServerShutOk()
}
Expand Down

0 comments on commit 95a4275

Please sign in to comment.