From 1bd541b69e3e0a6ad11b2ca856539ac736d2843f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 13 Mar 2018 17:45:34 +0700 Subject: [PATCH] service.Run: replace signal SIGKILL with SIGQUIT According to "os/signal" documentation [1] and libc manual [2], SIGKILL may not be caught by a program. [1] https://godoc.org/os/signal [2] https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html --- service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.go b/service.go index 88dfbbf1..486171a0 100644 --- a/service.go +++ b/service.go @@ -153,7 +153,7 @@ func (s *service) Run() error { go s.run(ex) ch := make(chan os.Signal, 1) - signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGKILL) + signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT) select { // wait on kill signal