code: def available(name, limit=''):
      '''
      Return True if the named service is available.  Use the ``limit`` param to
      restrict results to services of that type.
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' service.available sshd
          salt '*' service.available sshd limit=upstart
          salt '*' service.available sshd limit=sysvinit
      '''
      if limit == 'upstart':
          return _service_is_upstart(name)
      elif limit == 'sysvinit':
          return _service_is_sysv(name)
      else:
          return _service_is_upstart(name) or _service_is_sysv(name) or _service_is_chkconfig(namef available(name, limit=''):
      '''
      Return True if the named service is available.  Use the ``limit`` param to
      restrict results to services of that type.
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' service.available sshd
          salt '*' service.available sshd limit=upstart
          salt '*' service.available sshd limit=sysvinit
      '''
      if limit == 'upstart':
          return _service_is_upstart(name)
      elif limit == 'sysvinit':
          return _service_is_sysv(name)
      else:
          return _service_is_upstart(name) or _service_is_sysv(name) or _service_is_chkconfig(name)
docs: Return True if the named service is available.  Use the ``limit`` param to
      restrict results to services of that type.
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt '*' service.available sshd
          salt '*' service.available sshd limit=upstart
          salt '*' service.available sshd limit=sysvinit