Beispiel #1
0
func WaitStop() {
	exitCode := <-chAppStop

	Monitor.Stop()

	NetCore.StopTcpServer()

	Logger.Stop()

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

	os.Exit(0)
}
Beispiel #2
0
func WaitStop() {
	exitCode := <-chAppStop

	Monitor.Stop()

	NetCore.StopTcpServer()

	SigHandler.Stop()

	Logger.Stop()

	Logger.Println("[ShutDown] Server Stop, exitCode:", ErrConf.GetErrString(exitCode))

	os.Exit(0)
}