Log when signal received
This commit is contained in:
parent
01a0b798e8
commit
3a1ab9542d
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ func run() error {
|
|||
signal.Notify(stop, syscall.SIGTERM)
|
||||
log.Info().Msg("running")
|
||||
log.Info().Msg("send SIGINT (ctrl+c) or SIGTERM to stop")
|
||||
<-stop
|
||||
sig := <-stop
|
||||
log.Info().Msgf("got signal %#v", sig.String())
|
||||
|
||||
log.Info().Msg("removing command")
|
||||
|
||||
|
|
Reference in a new issue