def disable(name, **kwargs):
    '''
    Disable the named service to start at boot

    CLI Example:

    .. code-block:: bash

        salt '*' service.disable <service name> <runlevels=single-runlevel>
        salt '*' service.disable <service name> <runlevels=[runlevel1,runlevel2]>
    '''
    levels = []
    if 'runlevels' in kwargs:
        requested_levels = set(kwargs['runlevels'] if isinstance(kwargs['runlevels'],
                                                                 list) else [kwargs['runlevels']])
        levels = _disable_delta(name, requested_levels)
        if not levels:
            return True
    cmd = _enable_disable_cmd(name, 'delete', levels)
    return not _ret_code(cmd)
def disable ( name , ** kwargs ) : levels = [ ] if 'runlevels' in kwargs : requested_levels = set ( kwargs [ 'runlevels' ] if isinstance ( kwargs [ 'runlevels' ] , list ) else [ kwargs [ 'runlevels' ] ] ) levels = _disable_delta ( name , requested_levels ) if not levels : return True cmd = _enable_disable_cmd ( name , 'delete' , levels ) return not _ret_code ( cmd )
Disable the named service to start at boot

    CLI Example:

    .. code-block:: bash

        salt '*' service.disable <service name> <runlevels=single-runlevel>
        salt '*' service.disable <service name> <runlevels=[runlevel1,runlevel2]>