svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=129
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 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
+machine="$2"
+cdrom="$3"
if [ -n "$cdrom" ]; then
xm create sipb-database machine_name="$machine" cdrom_image="$cdrom"
if [ -n "$cdrom" ]; then
xm create sipb-database machine_name="$machine" cdrom_image="$cdrom"
--- /dev/null
+#!/bin/sh
+machine="$2"
+disk="$3"
+
+if [ -e /etc/remctl/sipb-xen-auto/acl/"$machine" ]; then
+ /sbin/lvremove --force /dev/xenvg/"$machine"_"$disk"
+fi