clusterstatus.sh

    my version of the cluster shutdown script, circa 2009. the main differences from the standard scripts is that these custom versions didn't have their locations hard coded, and they called each other, reducing code duplication and drift.

    #!/bin/sh
    # Cluster Status Discovery
    
    zeoclients="client1 client2"
    
    clusterpath=${0%/*}/..
    
    if [ ! -w ${clusterpath}/var/blobstorage ]; then
        echo "You lack the rights necessary to run this script;\nTry sudo $0"
        exit 1
    fi
    
    echo "ZEO Server:"
    ${clusterpath}/bin/zeo status
    for client in $zeoclients
    do
        echo "Zope Client:" $client
        ${clusterpath}/parts/${client}/bin/zopectl status
    done