示例#1
0
func (ish *InterruptSignalHandler) Process(s os.Signal, ud interface{}) error {
	logger.Info("Receive Interrupt signal, process start quit.")
	module.Stop()
	return nil
}
示例#2
0
func (ish *KillSignalHandler) Process(s os.Signal, ud interface{}) error {
	logger.Info("Receive Kill signal, process be close")
	module.Stop()
	return nil
}
示例#3
0
func (this exitExecuter) Execute(args []string) {
	module.Stop()
}