From 9509b1353dff766b0ba5cc3cb924f88468eb9628 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 1 Apr 2023 19:38:06 +0800 Subject: [PATCH] feat: support SIGQUIT graceful exit --- cmd/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/controller.go b/cmd/controller.go index 1cfeb75..e5f2f68 100644 --- a/cmd/controller.go +++ b/cmd/controller.go @@ -27,7 +27,7 @@ func runProcess(env []string, command ...string) { func blockWait() { 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 }