code: def _sysv_services():
      '''
      Return list of sysv services.
      '''
      _services = []
      output = __salt__['cmd.run'](['chkconfig', '--list'], python_shell=False)
      for line in output.splitlines():
          comps = line.split()
          try:
              if comps[1].startswith('0:'):
                  _services.append(comps[0])
          except IndexError:
              continue
      # Return only the services that have an initscript present
      return [x for x in _services if _service_is_sysv(x)f _sysv_services():
      '''
      Return list of sysv services.
      '''
      _services = []
      output = __salt__['cmd.run'](['chkconfig', '--list'], python_shell=False)
      for line in output.splitlines():
          comps = line.split()
          try:
              if comps[1].startswith('0:'):
                  _services.append(comps[0])
          except IndexError:
              continue
      # Return only the services that have an initscript present
      return [x for x in _services if _service_is_sysv(x)]
docs: Return list of sysv services.