diff --git a/system/system.go b/system/system.go index 5ea8ebc..e8fbc17 100644 --- a/system/system.go +++ b/system/system.go @@ -143,8 +143,10 @@ func (sys *System) Start() { if sys.status == sys_restart { isRestart = true } - - history.Send(history.Info().Nm("SysDown").Msg("system stoped")) + // only log if system has started + if sys.status == sys_wait { + history.Send(history.Info().Nm("SysDown").Msg("system stoped")) + } l.Info().Msg("Terminating...") sys.status = sys_term go func() {