From 1cf5579e05346c95f74b89ad6f5a5c811863c908 Mon Sep 17 00:00:00 2001 From: derfenix Date: Thu, 13 Mar 2025 22:35:49 +0300 Subject: [PATCH] Fix bug --- cmd/service/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)