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) }
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) }