diff --git a/server/signal_windows.go b/server/signal_windows.go index a3667c80..d55589fe 100644 --- a/server/signal_windows.go +++ b/server/signal_windows.go @@ -17,6 +17,7 @@ import ( "fmt" "os" "os/signal" + "syscall" "time" "golang.org/x/sys/windows/svc" @@ -30,7 +31,7 @@ func (s *Server) handleSignals() { } c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt) + signal.Notify(c, os.Interrupt, syscall.SIGTERM) go func() { for sig := range c {