Changeset 5796 in /cluster/svnroot


Ignore:
Timestamp:
Sep 19, 2016 11:02:16 PM (4 years ago)
Author:
skylar
Message:

create batch queue if it does not exist re #981

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.3.4/trees/bin/bccd-add-pbsnodes

    r4442 r5796  
    6161    fi
    6262
     63    return 0
     64}
     65
     66# Create the batch queue if it does not already exist
     67function create_batch_queue() {
     68    if ! qstat -q|grep -q batch && ! qmgr -c "create queue batch queue_type=execution"; then
     69        echo "Creating batch queue failed!" >&2
     70        return 2
     71    fi
     72    if ! qmgr -c "set server default_queue = batch" ; then
     73        echo "Setting default queue to batch failed" >&2
     74        return 2
     75    fi
     76    if ! qmgr -c "set queue batch enabled = True" ; then
     77        echo "Enabling batch queue failed" >&2
     78        return 2
     79    fi
    6380    return 0
    6481}
     
    129146done
    130147
     148create_batch_queue
     149
    131150IFS=${OLDIFS}
Note: See TracChangeset for help on using the changeset viewer.