Last change
on this file since 625 was
625,
checked in by price, 16 years ago
|
remote: proxy control requests on running VMs to right host
|
-
Property svn:executable set to
*
|
File size:
536 bytes
|
Rev | Line | |
---|
[502] | 1 | #!/bin/sh |
---|
| 2 | # invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense. |
---|
[549] | 3 | klist -s || kinit -k host/remote.mit.edu |
---|
[624] | 4 | |
---|
[620] | 5 | TYPE="${0##*-}" |
---|
[624] | 6 | case "$TYPE" in |
---|
| 7 | control ) |
---|
| 8 | SERVICE="$2" ;; |
---|
| 9 | * ) |
---|
| 10 | SERVICE="$1" ;; |
---|
[620] | 11 | esac |
---|
[624] | 12 | |
---|
| 13 | case "$TYPE/$SERVICE" in |
---|
| 14 | web/listvms ) |
---|
| 15 | shift; sipb-xen-remote-listvms "$@" ;; |
---|
[625] | 16 | control/create ) |
---|
| 17 | remctl black-mesa remote "$TYPE" "$@" ;; |
---|
| 18 | control/* ) |
---|
| 19 | # Everything but create must go where the VM is already running. |
---|
| 20 | sipb-xen-remote-control "$@" ;; |
---|
[624] | 21 | * ) |
---|
| 22 | remctl black-mesa remote "$TYPE" "$@" ;; |
---|
| 23 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.