def _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 [x for x in _services if _service_is_sysv(x)]

def _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 [ x for x in _services if _service_is_sysv ( x ) ]
return list of sysv services .