code: def get_all():
      '''
      .. versionadded:: 2014.7.0
  
      Return all available boot services
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all
      '''
      services = []
      if not os.path.isdir('/etc/rc.d'):
          return services
      for service in os.listdir('/etc/rc.d'):
          # this will remove rc.subr and all non executable files
          if available(service):
              services.append(service)
      return sorted(servicesf get_all():
      '''
      .. versionadded:: 2014.7.0
  
      Return all available boot services
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all
      '''
      services = []
      if not os.path.isdir('/etc/rc.d'):
          return services
      for service in os.listdir('/etc/rc.d'):
          # this will remove rc.subr and all non executable files
          if available(service):
              services.append(service)
      return sorted(services)
docs: .. versionadded:: 2014.7.0
  
      Return all available boot services
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all