Changeset 2495 for trunk/packages/invirt-remote/server/usr/sbin
- Timestamp:
- Oct 7, 2009, 3:24:47 AM (15 years ago)
- Location:
- trunk/packages/invirt-remote/server/usr/sbin
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy
r2292 r2495 1 #!/bin/bash 2 # invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense. 1 #!/bin/bash 2 # invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense. 3 3 4 4 klist -s || kinit -k … … 7 7 case "$TYPE" in 8 8 control ) 9 9 MACHINE="$1"; SERVICE="$2"; shift; shift ;; 10 10 * ) 11 11 SERVICE="$1"; shift ;; 12 12 esac 13 13 14 14 case "$TYPE/$SERVICE" in 15 15 web/listvms ) 16 16 invirt-remote-listvms "$@" ;; 17 17 web/vnccert ) 18 18 invirt-remote-vnccert "$@" ;; … … 20 20 invirt-remote-availability "$@" ;; 21 21 web/lvcreate | web/lvremove | web/lvrename | web/lvresize ) 22 if [ -f "/etc/invirt/nolvm" ]; then 23 echo "LVM operations are temporarily disabled for maintenance, sorry." >&2 24 exit 2 25 fi 26 remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;; 22 invirt-remote-lvm "$SERVICE" "$@" 23 ;; 27 24 control/help ) 28 25 invirt-remctl-help ;; … … 32 29 exit 2 33 30 fi 34 31 invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;; 35 32 control/listhost|control/list-host ) 36 33 invirt-remote-listhost "$MACHINE" "$@" ;; 37 34 control/* ) 38 39 35 # Everything but create must go where the VM is already running. 36 invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;; 40 37 * ) 41 echo "ERROR: invalid subcommand "38 echo "ERROR: invalid subcommand $TYPE/$SERVICE" 42 39 exit 34 43 40 ;;
Note: See TracChangeset
for help on using the changeset viewer.