docs: def enabled(name, **kwargs):
      '''
      Return True if the named service is enabled at boot and the provided
      flags match the configured ones (if any). Return False otherwise.
  
      name
          Service name
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled <service name>
          salt '*' service.enabled <service name> flags=<flags>
      '''
      cmd = '{0} get {1} status'.format(_cmd(), name)
      if not __salt__['cmd.retcode'](cmd):
          # also consider a service disabled if the current flags are different
          # than the configured ones so we have a chance to update them
          flags = _get_flags(**kwargs)
          cur_flags = __salt__['cmd.run_stdout']('{0} get {1} flags'.format(_cmd(), name))
          if format(flags) == format(cur_flags):
              return True
          if not flags:
              def_flags = __salt__['cmd.run_stdout']('{0} getdef {1} flags'.format(_cmd(), name))
              if format(cur_flags) == format(def_flags):
                  return True
  
      return False