From c66df01e89093d14b6deed748a55d16b44253d76 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 8 Oct 2007 04:13:17 -0400 Subject: [PATCH] More web interface support code. svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=141 --- files/etc/remctl/sipb-xen-auto/conf.template | 1 + files/usr/sbin/dispatch.sh | 3 +-- files/usr/sbin/dispatch.shutdown.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 files/usr/sbin/dispatch.shutdown.sh 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 -- 1.7.9.5