Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-04-09 07:57:35 +02:00
committed by GitHub
parent ea5a0d5229
commit 64cb538dbf
11 changed files with 55 additions and 567 deletions

View File

@@ -38,7 +38,7 @@ func (s *ServeCmd) Run(ctx *Context) error {
log.Info().Str("version", version).Msgf("Starting %s", ctx.Meta.Name)
// Handle os signals
channel := make(chan os.Signal)
channel := make(chan os.Signal, 1)
signal.Notify(channel, os.Interrupt, utl.SIGTERM)
go func() {
sig := <-channel