X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/437a816b13b6701cdafc6fb7363324bd60a7efbe:/files/usr/sbin/invirt-remote..ccdd1009d00397d0f81fa9a95aa96faf448b9e94:/host/usr/sbin/gitweb.js diff --git a/files/usr/sbin/invirt-remote b/files/usr/sbin/invirt-remote deleted file mode 100755 index 8511f60..0000000 --- a/files/usr/sbin/invirt-remote +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# invirt-remote TYPE SERVICE [ARGS...] -# -# We carry out the remctl command proxied to us by the remote-control server. - -TYPE="$1" -SERVICE="$2" -shift; shift; - -case "$TYPE" in - control) - # $SERVICE is hostname - COMMAND=/usr/sbin/invirt-vmcontrol - ;; - web) - case "$SERVICE" in - lvcreate|lvremove|lvrename|lvresize) - COMMAND=/usr/sbin/invirt-lvm - ;; - listvms) - COMMAND=/usr/sbin/invirt-listvms - ;; - info) - COMMAND=/usr/sbin/xm - ;; - vnccert) - COMMAND=/usr/bin/invirt-vnc-getcert - ;; - *) - echo "ERROR: invalid subcommand" - exit 34 - ;; - esac - ;; - *) - echo "ERROR: invalid command" - exit 34 - ;; -esac - -$COMMAND "$SERVICE" "$@"