code: func (sc ServiceCheck) Check() (warnings, errorList []error) {
  	klog.V(1).Infoln("validating if the service is enabled and active")
  	initSystem, err := initsystem.GetInitSystem()
  	if err != nil {
  		return []error{err}, nil
  	}
  
  	warnings = []error{}
  
  	if !initSystem.ServiceExists(sc.Service) {
  		warnings = append(warnings, errors.Errorf("%s service does not exist", sc.Service))
  		return warnings, nil
  	}
  
  	if !initSystem.ServiceIsEnabled(sc.Service) {
  		warnings = append(warnings,
  			errors.Errorf("%s service is not enabled, please run 'systemctl enable %s.service'",
  				sc.Service, sc.Service))
  	}
  
  	if sc.CheckIfActive && !initSystem.ServiceIsActive(sc.Service) {
  		errorList = append(errorList,
  			errors.Errorf("%s service is not active, please run 'systemctl start %s.service'",
  				sc.Service, sc.Service))
  	}
  
  	return warnings, errorList
  }
docs: // Check validates if the service is enabled and active.