Log when signal received

This commit is contained in:
Minecraft server 2023-03-23 13:42:37 +00:00
parent 01a0b798e8
commit 3a1ab9542d

View file

@ -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")