def _upstart_disable(name):
    if _upstart_is_disabled(name):
        return _upstart_is_disabled(name)
    override = '/etc/init/{0}.override'.format(name)
    with salt.utils.fopen(override, 'a') as ofile:
        ofile.write('manual\n')
    return _upstart_is_disabled(name)
Disable an Upstart service.
dataset/ETHPy150Open saltstack/salt/salt/modules/upstart.py/_upstart_disable