Add default set of signals
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 35s

Signed-off-by: Jan Tytgat <jan.tytgat@corelayer.eu>
This commit is contained in:
Jan Tytgat
2025-04-25 14:24:19 +02:00
parent b153b7f837
commit b9a06f5fd4

View File

@ -6,6 +6,7 @@ import (
"os" "os"
"reflect" "reflect"
"runtime" "runtime"
"syscall"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
@ -13,6 +14,8 @@ import (
"git.flexabyte.io/flexabyte/go-slogd/slogd" "git.flexabyte.io/flexabyte/go-slogd/slogd"
) )
var DefaultShutdownSignals = []os.Signal{syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP, syscall.SIGQUIT}
var ( var (
appName string appName string
appCmd *cobra.Command appCmd *cobra.Command