code: def enabled(name, runas=None):
      '''
      Check if the specified service is enabled
  
      :param str name: The name of the service to look up
  
      :param str runas: User to run launchctl commands
  
      :return: True if the specified service enabled, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled org.cups.cupsd
      '''
      # Try to list the service.  If it can't be listed, it's not enabled
      try:
          list_(name=name, runas=runas)
          return True
      except CommandExecutionError:
          return Falsf enabled(name, runas=None):
      '''
      Check if the specified service is enabled
  
      :param str name: The name of the service to look up
  
      :param str runas: User to run launchctl commands
  
      :return: True if the specified service enabled, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled org.cups.cupsd
      '''
      # Try to list the service.  If it can't be listed, it's not enabled
      try:
          list_(name=name, runas=runas)
          return True
      except CommandExecutionError:
          return False
docs: Check if the specified service is enabled
  
      :param str name: The name of the service to look up
  
      :param str runas: User to run launchctl commands
  
      :return: True if the specified service enabled, otherwise False
      :rtype: bool
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.enabled org.cups.cupsd