Skip to content. | Skip to navigation

Personal tools
Sections

clientXctl.sh

by Ken Manheimer last modified Aug 05, 2011 01:43 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 client command prompt

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

if [ -z "$1" ]; then
usage $0 clientdirname [ args ... ]
exit 1
fi

client="$1"
shift

echo "starting ZEO $1 zopectl prompt..."
${clusterhome}/parts/$client/bin/zopectl "$@"

Document Actions