def is_enabled(name):
    ret = exec_cmd("/sbin/runlevel")
    if ret['returncode'] <= 0:
        raise ResourceException(ret['stderr'])

    match = False
    try:
        runlevel = ret['stdout'].split()[1]
        for filename in os.listdir('/etc/rc%s.d' % runlevel):
            if name in filename and filename.startswith('S'):
                match = True

    except (ValueError, IndexError), err:
        raise ResourceException(err)

    return match
dataset/ETHPy150Open comodit/synapse-agent/synapse/resources/services-plugin/services-systemv.py/is_enabled/operator `!=` -> `<=`