From 6af24574375074996d7270e796d8c6175b14e937 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 7 Oct 2007 22:14:12 -0400 Subject: [PATCH] more remctl support for web interface svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=129 --- files/etc/remctl/conf.d/sipb-xen-web | 1 + files/usr/sbin/sipb-xen-boot | 4 ++-- files/usr/sbin/sipb-xen-lvremove | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 files/usr/sbin/sipb-xen-lvremove diff --git a/files/etc/remctl/conf.d/sipb-xen-web b/files/etc/remctl/conf.d/sipb-xen-web index 3c1225f..e5f6bd0 100644 --- a/files/etc/remctl/conf.d/sipb-xen-web +++ b/files/etc/remctl/conf.d/sipb-xen-web @@ -3,3 +3,4 @@ web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web web register /usr/sbin/remctl-update.sh /etc/remctl/acl/web web remctl-moira-update all /usr/sbin/remctl-update.sh /etc/remctl/acl/web web listvms /usr/sbin/sipb-xen-listvms /etc/remctl/acl/web +web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web diff --git a/files/usr/sbin/sipb-xen-boot b/files/usr/sbin/sipb-xen-boot index 6b61d0d..7a9cb81 100755 --- a/files/usr/sbin/sipb-xen-boot +++ b/files/usr/sbin/sipb-xen-boot @@ -1,6 +1,6 @@ #!/bin/sh -machine=$2 -cdrom=$3 +machine="$2" +cdrom="$3" if [ -n "$cdrom" ]; then xm create sipb-database machine_name="$machine" cdrom_image="$cdrom" diff --git a/files/usr/sbin/sipb-xen-lvremove b/files/usr/sbin/sipb-xen-lvremove new file mode 100755 index 0000000..c4c06cf --- /dev/null +++ b/files/usr/sbin/sipb-xen-lvremove @@ -0,0 +1,7 @@ +#!/bin/sh +machine="$2" +disk="$3" + +if [ -e /etc/remctl/sipb-xen-auto/acl/"$machine" ]; then + /sbin/lvremove --force /dev/xenvg/"$machine"_"$disk" +fi -- 1.7.9.5