def disabled(name):
    if _service_is_upstart(name):
        return not _upstart_is_enabled(name)
    else:
        return not _sysv_is_enabled(name)
Check to see if the named service is disabled to start on boot
dataset/ETHPy150Open saltstack/salt/salt/modules/rh_service.py/disabled