add qemu-wrapper.sh

This commit is contained in:
2013-04-05 20:28:01 +02:00
parent bf1918204f
commit 05b3f04c8c

12
mc-vm-manager/qemu-wrapper.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
vmid=$1
shift
date >> /tmp/cleanup
echo "Starting ${vmid}" >> /tmp/cleanup
/usr/bin/qemu-kvm $@
date >> /tmp/cleanup
echo "Cleaning up for ${vmid}" >> /tmp/cleanup
/root/tmp/manager.py cleanup $vmid