diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 64d527f..ed59413 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -7,6 +7,7 @@ import ( "os/signal" "regexp" "strings" + "syscall" "github.com/gin-gonic/gin" "github.com/jessevdk/go-flags" @@ -203,7 +204,7 @@ func startServer() { func handleSignals() { c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt, os.Kill) + signal.Notify(c, os.Interrupt, syscall.SIGTERM) <-c }