+ register)
+ if [ "$2" == "Domain-0" ]; then
+ echo "No, you can't control Domain 0"
+ exit 1
+ fi
+ if [ -e /etc/xen/"$2" ]; then
+ echo "Machine already exists outside database"
+ exit 1
+ fi
+ if [ -e "$ACLDIR"/"$2" ]; then
+ echo "Machine already registered"
+ exit 1
+ fi
+ echo "include /etc/remctl/acl/web" > "$ACLDIR/$2"
+ "$0" web
+ ;;
+ web)
+ "$0" auto_machine_list
+ "$0" all_machines
+ ;;