Browse Source

feat: support SIGQUIT graceful exit

v1.x.x
Dnomd343 2 years ago
parent
commit
9509b1353d
  1. 2
      cmd/controller.go

2
cmd/controller.go

@ -27,7 +27,7 @@ func runProcess(env []string, command ...string) {
func blockWait() { func blockWait() {
sigExit := make(chan os.Signal, 1) sigExit := make(chan os.Signal, 1)
signal.Notify(sigExit, syscall.SIGINT, syscall.SIGTERM) // wait until get exit signal signal.Notify(sigExit, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM) // wait until get exit signal
<-sigExit <-sigExit
} }

Loading…
Cancel
Save