diff --git a/cmd/workwebui/main.go b/cmd/workwebui/main.go index 6ffe0cd2..ee7f34c2 100644 --- a/cmd/workwebui/main.go +++ b/cmd/workwebui/main.go @@ -6,10 +6,11 @@ import ( "os" "os/signal" "strconv" + "syscall" "time" - "github.com/sbermarket-tech/work/webui" "github.com/gomodule/redigo/redis" + "github.com/sbermarket-tech/work/webui" ) var ( @@ -40,7 +41,7 @@ func main() { server.Start() c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt, os.Kill) + signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT) <-c