code: func (d *Daemon) CheckServiceTasks(service string) func(*check.C) (interface{}, check.CommentInterface) {
  	return func(c *check.C) (interface{}, check.CommentInterface) {
  		tasks := d.GetServiceTasks(c, service)
  		return len(tasks), nil
  	}
  }
docs: // CheckServiceTasks returns the number of tasks for the specified service