Exemplo n.º 1
0
func WaitStop() {
	exitCode := <-chAppStop

	Monitor.Stop()

	NetCore.StopTcpServer()

	Logger.Stop()

	DBMgr.Stop()

	Logger.Print("Server Stop, exitCode:", exitCode)

	os.Exit(0)
}
Exemplo n.º 2
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)
}