From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Fri, 28 Mar 2008 16:04:33 +0000 (+0000)
Subject: clean pid file, it prevents qemu to restart otherwise
X-Git-Tag: tests-4.2-4~136
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c148e1ae08bfd5a28d68e32c38084e362ec05004;p=tests.git

clean pid file, it prevents qemu to restart otherwise
---

diff --git a/system/template-qemu/start-qemu-node b/system/template-qemu/start-qemu-node
index eee7a1e..9b53419 100755
--- a/system/template-qemu/start-qemu-node
+++ b/system/template-qemu/start-qemu-node
@@ -41,6 +41,8 @@ fi
 
 echo "New $HDA is created..."
 
+rm -f qemu.pid
+
 #Command for running the Qemu Emulator
 ARGS="-boot d -cdrom ${NODE_ISO} -hda ${HDA} -m ${RAM}  -net nic,macaddr=${MACADDR} -net $TAP -nographic -pidfile qemu.pid"
 echo $$ > shell.pid