Changeset 624


Ignore:
Timestamp:
Jun 21, 2008, 8:49:04 PM (16 years ago)
Author:
price
Message:

clean up sipb-xen-remote-proxy dispatch logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-proxy

    r620 r624  
    22# invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
    33klist -s || kinit -k host/remote.mit.edu
     4
    45TYPE="${0##*-}"
    5 SERVICE="$1"
    6 #echo remctl black-mesa remote "$TYPE" "$@"
    7 case "$SERVICE" in
    8     listvms ) shift; sipb-xen-remote-listvms "$@" ;;
    9     *       ) remctl black-mesa remote "$TYPE" "$@" ;;
     6case "$TYPE" in
     7    control )
     8        SERVICE="$2" ;;
     9    * )
     10        SERVICE="$1" ;;
    1011esac
     12
     13case "$TYPE/$SERVICE" in
     14    web/listvms )
     15        shift; sipb-xen-remote-listvms "$@" ;;
     16    * )
     17        remctl black-mesa remote "$TYPE" "$@" ;;
     18esac
Note: See TracChangeset for help on using the changeset viewer.