Browse Source

[add] SIGKILL,SIGQUIT

bvbej 2 years ago
parent
commit
ebde9fb159
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/shutdown/shutdown.go

+ 1 - 1
pkg/shutdown/shutdown.go

@@ -27,7 +27,7 @@ func NewHook() Hook {
 		ctx: make(chan os.Signal, 1),
 	}
 
-	return hook.WithSignals(syscall.SIGINT, syscall.SIGTERM)
+	return hook.WithSignals(syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL, syscall.SIGQUIT)
 }
 
 func (h *hook) WithSignals(signals ...syscall.Signal) Hook {