On Fri, 2011-03-18 at 17:13 +0000, Lars Hansson wrote: > The problem with the upstart solution is that it doesn't work since > Upstart will kill the virsh instances that you spawn in > shutdown_guests. > So far the only somewhat satisfactory solution is molly-guard. >
Right, so you would need shutdown_guests to block until everything is in fact shut down: while box in `virsh list --all | grep '^ -'|grep -qv 'shut off'` ; do virsh shutdown all sleep 1 done Note that currently libvirt-bin.conf has stop on runlevel [!2345] There is a bug in sendsigs that does not wait for these upstart jobs to die before moving on to the end of the shutdown... so really, we also need to fix that bug before the technique above will work. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. https://bugs.launchpad.net/bugs/350936 Title: Should shut down domains on system shutdown -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs