code: def get_all(jail=None):
      '''
      Return a list of all available services
  
      .. versionchanged:: 2016.3.4
  
      jail: optional jid or jail name
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all
      '''
      ret = []
      service = _cmd(jail)
      for srv in __salt__['cmd.run']('{0} -l'.format(service)).splitlines():
          if not srv.isupper():
              ret.append(srv)
      return sorted(retf get_all(jail=None):
      '''
      Return a list of all available services
  
      .. versionchanged:: 2016.3.4
  
      jail: optional jid or jail name
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all
      '''
      ret = []
      service = _cmd(jail)
      for srv in __salt__['cmd.run']('{0} -l'.format(service)).splitlines():
          if not srv.isupper():
              ret.append(srv)
      return sorted(ret)
docs: Return a list of all available services
  
      .. versionchanged:: 2016.3.4
  
      jail: optional jid or jail name
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' service.get_all