Skip to content. | Skip to navigation

Personal tools
Sections

startcluster.sh

by Ken Manheimer last modified Aug 05, 2011 01:45 PM
Filed under: , , ,
my own variant of the cluster startup 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
#
# ZEO cluster startup script
#

clusterpath=${0%/*}/..

if [ -z "$1" ]; then
command=start
else
command=restart
fi

echo 'Starting ZEO server...'
${clusterpath}/bin/zeo ${command}

sleep 1

echo "${command}ing ZEO client1..."
${clusterpath}/bin/client1 ${command}

echo "NOT ${command}ing ZEO client2 - use"
echo "'clientXctl client2' to control it separately."

Document Actions