diff --git a/cmd/service/main.go b/cmd/service/main.go index 83f6b20..e4eae37 100644 --- a/cmd/service/main.go +++ b/cmd/service/main.go @@ -6,6 +6,7 @@ import ( "os" "os/signal" "sync" + "syscall" "go.uber.org/zap" @@ -14,7 +15,7 @@ import ( ) func main() { - ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill) + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) defer cancel() cfg, err := config.NewConfig(ctx)