code: def enabled(name, **kwargs):
      '''
      Check to see if the named service is enabled to start on boot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled <service name>
      '''
      # The property that reveals whether a service is enabled
      # can only be queried using the full FMRI
      # We extract the FMRI and then do the query
      fmri_cmd = '/usr/bin/svcs -H -o FMRI {0}'.format(name)
      fmri = __salt__['cmd.run'](fmri_cmd, python_shell=False)
      cmd = '/usr/sbin/svccfg -s {0} listprop general/enabled'.format(fmri)
      comps = __salt__['cmd.run'](cmd, python_shell=False).split()
      if comps[2] == 'true':
          return True
      else:
          return Falsf enabled(name, **kwargs):
      '''
      Check to see if the named service is enabled to start on boot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled <service name>
      '''
      # The property that reveals whether a service is enabled
      # can only be queried using the full FMRI
      # We extract the FMRI and then do the query
      fmri_cmd = '/usr/bin/svcs -H -o FMRI {0}'.format(name)
      fmri = __salt__['cmd.run'](fmri_cmd, python_shell=False)
      cmd = '/usr/sbin/svccfg -s {0} listprop general/enabled'.format(fmri)
      comps = __salt__['cmd.run'](cmd, python_shell=False).split()
      if comps[2] == 'true':
          return True
      else:
          return False
docs: Check to see if the named service is enabled to start on boot
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled <service name>