From 815d8d850b68dffb4d80da55b986b07786ad428d Mon Sep 17 00:00:00 2001 From: Greg Bray Date: Fri, 9 Oct 2015 00:39:52 +0000 Subject: [PATCH] cmd/bosun: exit on syscall.SIGTERM as well --- cmd/bosun/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/bosun/main.go b/cmd/bosun/main.go index 81155021e7..cc0db47cb8 100644 --- a/cmd/bosun/main.go +++ b/cmd/bosun/main.go @@ -14,6 +14,7 @@ import ( "path/filepath" "runtime" "strings" + "syscall" "time" "bosun.org/_third_party/github.com/facebookgo/httpcontrol" @@ -146,7 +147,7 @@ func main() { }() go func() { sc := make(chan os.Signal, 1) - signal.Notify(sc, os.Interrupt) + signal.Notify(sc, os.Interrupt, syscall.SIGTERM) killing := false for range sc { if killing {