more remctl support for web interface
authorTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 02:14:12 +0000 (22:14 -0400)
committerTim Abbott <tabbott@mit.edu>
Mon, 8 Oct 2007 02:14:12 +0000 (22:14 -0400)
svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=129

files/etc/remctl/conf.d/sipb-xen-web
files/usr/sbin/sipb-xen-boot
files/usr/sbin/sipb-xen-lvremove [new file with mode: 0755]

index 3c1225f..e5f6bd0 100644 (file)
@@ -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
index 6b61d0d..7a9cb81 100755 (executable)
@@ -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 (executable)
index 0000000..c4c06cf
--- /dev/null
@@ -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