def _detect_os():
    # TODO: Add pillar support for the apachectl location
    os_family = __grains__['os_family']
    if os_family == 'RedHat':
        return 'apachectl'
    elif os_family == 'Debian' or os_family == 'Suse':
        return 'apache2ctl'
    else:
        return 'apachectl'
Compares given paths and selects best path based on reachable next-hop.
dataset/ETHPy150Open saltstack/salt/salt/modules/apache.py/_detect_os--crossover with--dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/processor.py/_cmp_by_reachable_nh