Add default set of signals
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 35s
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user