#!/bin/sh

# halt a group of machines, check the farmlet name to see what sort
# of shutdown command to use
# syntax   #haltallnodes r2farms
for i
do
	case $i in
        r2*) rgang $i "/sbin/shutdown -h now >/dev/null 0
<&1 2>&1 &"
                ;;
	*) echo "I don't know how to shut down the $i farmlet"
		;;
	esac
done
