Changeset 659 for trunk/packages/sipb-xen-remote-server/files/usr
- Timestamp:
- Jun 28, 2008, 11:45:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-proxy
r625 r659 1 1 #!/bin/sh 2 2 # invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense. 3 3 4 klist -s || kinit -k host/remote.mit.edu 4 5 … … 6 7 case "$TYPE" in 7 8 control ) 8 SERVICE="$2";;9 MACHINE="$1"; SERVICE="$2"; shift; shift ;; 9 10 * ) 10 SERVICE="$1" ;;11 SERVICE="$1"; shift ;; 11 12 esac 12 13 13 14 case "$TYPE/$SERVICE" in 14 15 web/listvms ) 15 s hift; sipb-xen-remote-listvms "$@" ;;16 sipb-xen-remote-listvms "$@" ;; 16 17 control/create ) 17 remctl black-mesa remote "$TYPE" "$ @" ;;18 remctl black-mesa remote "$TYPE" "$MACHINE" "$SERVICE" "$@" ;; 18 19 control/* ) 19 20 # Everything but create must go where the VM is already running. 20 sipb-xen-remote-control "$ @" ;;21 sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;; 21 22 * ) 22 remctl black-mesa remote "$TYPE" "$ @" ;;23 remctl black-mesa remote "$TYPE" "$SERVICE" "$@" ;; 23 24 esac
Note: See TracChangeset
for help on using the changeset viewer.