[Fusionforge-commits] r10931 - trunk/tests/scripts

Christian Bayle cbayle at libremir.placard.fr.eu.org
Sun Oct 10 21:26:44 CEST 2010


Author: cbayle
Date: 2010-10-10 21:26:44 +0200 (Sun, 10 Oct 2010)
New Revision: 10931

Modified:
   trunk/tests/scripts/stop_vz.sh
Log:
Stop alternate vm


Modified: trunk/tests/scripts/stop_vz.sh
===================================================================
--- trunk/tests/scripts/stop_vz.sh	2010-10-10 19:26:36 UTC (rev 10930)
+++ trunk/tests/scripts/stop_vz.sh	2010-10-10 19:26:44 UTC (rev 10931)
@@ -1,3 +1,16 @@
 #!/bin/sh
 
-sudo /root/stop_vz.sh "$1"
+if sudo /root/stop_vz.sh "$1"
+then
+	echo "VM removed"
+else
+	pwd
+	. ../openvz/config.default
+	if [ -f ../openvz/config.`hostname` ]
+	then
+		. ../openvz/config.`hostname`
+	fi
+	echo "Run the folowing to destroy test server :"
+	echo "sudo /usr/sbin/vzctl stop $VEIDCEN"
+	echo "sudo /usr/sbin/vzctl destroy $VEIDCEN"
+fi




More information about the Fusionforge-commits mailing list