summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
15813cd)
svn path=/trunk/packages/sipb-xen-remote-server/; revision=659
#!/bin/sh
# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
#!/bin/sh
# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
klist -s || kinit -k host/remote.mit.edu
TYPE="${0##*-}"
case "$TYPE" in
control )
klist -s || kinit -k host/remote.mit.edu
TYPE="${0##*-}"
case "$TYPE" in
control )
+ MACHINE="$1"; SERVICE="$2"; shift; shift ;;
esac
case "$TYPE/$SERVICE" in
web/listvms )
esac
case "$TYPE/$SERVICE" in
web/listvms )
- shift; sipb-xen-remote-listvms "$@" ;;
+ sipb-xen-remote-listvms "$@" ;;
- remctl black-mesa remote "$TYPE" "$@" ;;
+ remctl black-mesa remote "$TYPE" "$MACHINE" "$SERVICE" "$@" ;;
control/* )
# Everything but create must go where the VM is already running.
control/* )
# Everything but create must go where the VM is already running.
- sipb-xen-remote-control "$@" ;;
+ sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;;
- remctl black-mesa remote "$TYPE" "$@" ;;
+ remctl black-mesa remote "$TYPE" "$SERVICE" "$@" ;;