From: Tim Abbott Date: Mon, 8 Oct 2007 08:13:17 +0000 (-0400) Subject: More web interface support code. X-Git-Tag: sipb-xen-remctl-auto/1.0.4~10 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/c66df01e89093d14b6deed748a55d16b44253d76 More web interface support code. svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=141 --- diff --git a/files/etc/remctl/sipb-xen-auto/conf.template b/files/etc/remctl/sipb-xen-auto/conf.template index b066a7d..3a5785f 100644 --- a/files/etc/remctl/sipb-xen-auto/conf.template +++ b/files/etc/remctl/sipb-xen-auto/conf.template @@ -2,6 +2,7 @@ create #MACHINENAME# #BINDIR#/dispatch.create.sh /etc/remctl/sipb-xen-auto/acl/# reboot #MACHINENAME# #BINDIR#/dispatch.reboot.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# destroy #MACHINENAME# #BINDIR#/dispatch.destroy.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# list #MACHINENAME# #BINDIR#/dispatch.list.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# +shutdown #MACHINENAME# #BINDIR#/dispatch.shutdown.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# list-long #MACHINENAME# #BINDIR#/dispatch.list-long.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# vcpu-list #MACHINENAME# #BINDIR#/dispatch.vcpu-list.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# uptime #MACHINENAME# #BINDIR#/dispatch.uptime.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# diff --git a/files/usr/sbin/dispatch.sh b/files/usr/sbin/dispatch.sh index 00576dd..7abf70d 100755 --- a/files/usr/sbin/dispatch.sh +++ b/files/usr/sbin/dispatch.sh @@ -11,10 +11,9 @@ ACTION=$(echo "$0" | awk -F'.' '{print $2}') MACHINE="$1" -#echo "$0" "$ACTION" case "$ACTION" in - list|vcpu-list|destroy|create|uptime) + list|vcpu-list|destroy|create|uptime|shutdown) xm "$ACTION" "$MACHINE" exit 0 ;; diff --git a/files/usr/sbin/dispatch.shutdown.sh b/files/usr/sbin/dispatch.shutdown.sh new file mode 120000 index 0000000..29a39d7 --- /dev/null +++ b/files/usr/sbin/dispatch.shutdown.sh @@ -0,0 +1 @@ +dispatch.sh \ No newline at end of file