예제 #1
0
func (s *Server) appendDeadmanService() {
	l := s.LogService.NewLogger("[deadman] ", log.LstdFlags)
	srv := deadman.NewService(s.config.Deadman, l)

	s.TaskMaster.DeadmanService = srv
	s.AppendService("deadman", srv)
}
예제 #2
0
func (s *Server) appendDeadmanService(c deadman.Config) {
	l := s.LogService.NewLogger("[deadman] ", log.LstdFlags)
	srv := deadman.NewService(c, l)

	s.TaskMaster.DeadmanService = srv
	s.Services = append(s.Services, srv)
}