control)
# $SERVICE is hostname
COMMAND=/usr/sbin/invirt-vmcontrol
- ;;
+ ;;
web)
case "$SERVICE" in
- lvcreate|lvremove|lvrename|lvresize)
+ lvcreate|lvremove|lvrename|lvresize|vgcapacity)
COMMAND=/usr/sbin/invirt-lvm
- ;;
+ ;;
listvms)
COMMAND=/usr/sbin/invirt-listvms
- ;;
- info)
- exec /usr/sbin/xm info
- ;;
+ ;;
+ availability|avail)
+ COMMAND=/usr/sbin/invirt-availability
+ ;;
vnccert)
COMMAND=/usr/bin/invirt-vnc-getcert
;;
exit 34
;;
esac
- ;;
+ ;;
*)
echo "ERROR: invalid command"
exit 34
;;
esac
-exec "$COMMAND" "$SERVICE" "$@"
+$COMMAND "$SERVICE" "$@"