More web interface support code.
authorTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 08:13:17 +0000 (04:13 -0400)
committerTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 08:13:17 +0000 (04:13 -0400)
svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=141

files/etc/remctl/sipb-xen-auto/conf.template
files/usr/sbin/dispatch.sh
files/usr/sbin/dispatch.shutdown.sh [new symlink]

index b066a7d..3a5785f 100644 (file)
@@ -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#
index 00576dd..7abf70d 100755 (executable)
 
 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 (symlink)
index 0000000..29a39d7
--- /dev/null
@@ -0,0 +1 @@
+dispatch.sh
\ No newline at end of file