code: def get_enabled(jail=None):
      '''
      Return what services are set to run on boot
  
      .. versionchanged:: 2016.3.4
  
      Support for jail (representing jid or jail name) keyword argument in kwargs
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled
      '''
      ret = []
      service = _cmd(jail)
      prf = _get_jail_path(jail) if jail else ''
      for svc in __salt__['cmd.run']('{0} -e'.format(service)).splitlines():
          ret.append(os.path.basename(svc))
  
      # This is workaround for bin/173454 bug
      for svc in get_all(jail):
          if svc in ret:
              continue
          if not os.path.exists('{0}/etc/rc.conf.d/{1}'.format(prf, svc)):
              continue
          if enabled(svc, jail=jail):
              ret.append(svc)
  
      return sorted(retf get_enabled(jail=None):
      '''
      Return what services are set to run on boot
  
      .. versionchanged:: 2016.3.4
  
      Support for jail (representing jid or jail name) keyword argument in kwargs
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled
      '''
      ret = []
      service = _cmd(jail)
      prf = _get_jail_path(jail) if jail else ''
      for svc in __salt__['cmd.run']('{0} -e'.format(service)).splitlines():
          ret.append(os.path.basename(svc))
  
      # This is workaround for bin/173454 bug
      for svc in get_all(jail):
          if svc in ret:
              continue
          if not os.path.exists('{0}/etc/rc.conf.d/{1}'.format(prf, svc)):
              continue
          if enabled(svc, jail=jail):
              ret.append(svc)
  
      return sorted(ret)
docs: Return what services are set to run on boot
  
      .. versionchanged:: 2016.3.4
  
      Support for jail (representing jid or jail name) keyword argument in kwargs
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_enabled