diff --git a/system/system.go b/system/system.go index cdd58d4..5ea8ebc 100644 --- a/system/system.go +++ b/system/system.go @@ -134,8 +134,10 @@ func (sys *System) Start() { sys.quit <- syscall.SIGTERM } }() - <-sys.started - history.Send(history.Info().Nm("SysUP").Msg("system started")) + go func() { + <-sys.started + history.Send(history.Info().Nm("SysUP").Msg("system started")) + }() <-sys.quit isRestart := false if sys.status == sys_restart {