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 __HOLE__:
            continue
    # Return only the services that have an initscript present
    return [x for x in _services if _service_is_sysv(x)]
dataset/ETHPy150Open saltstack/salt/salt/modules/rh_service.py/_sysv_services