func WaitStop() { exitCode := <-chAppStop Monitor.Stop() NetCore.StopTcpServer() Logger.Stop() DBMgr.Stop() Logger.Print("Server Stop, exitCode:", exitCode) os.Exit(0) }
func WaitStop() { exitCode := <-chAppStop Monitor.Stop() NetCore.StopTcpServer() DBMgr.Stop() SigHandler.Stop() Logger.Stop() Logger.Println("[ShutDown] Server Stop, exitCode:", ErrConf.GetErrString(exitCode)) os.Exit(0) }