I made the following changes to John's scripts for Lucid:

modified omit-kvm-vm-pids as follows:
    changed directory: /lib/init/rw/sendsigs.omit.d to /var/run/sendsigs.omit.d
    check for no qemu pids
modified sendsigs as follows:
    changed directory: /lib/init/rw/sendsigs.omit.d to /var/run/sendsigs.omit.d
    added quotes on local variable assignments
    example:        local omitpids=$1
                          local omitpids="$1"
    also added a 10 second delay at the end to allow guests to shutdown
    otherwise the umount for the root filesystem fails and the system never 
shuts down

See attached updated scripts.

Installed as follows:

sudo service libvirt-bin stop
sudo cp libvirt-bin.conf /etc/init/
sudo kill -HUP 1
sudo service libvirt-bin start
sudo cp omit-kvm-vm-pids /etc/init.d/
sudo update-rc.d omit-kvm-vm-pids start 18 0 6 .
sudo cp sendsigs /etc/init.d


** Attachment added: "sendsigs"
   
https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/350936/+attachment/1762222/+files/sendsigs

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm 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

Reply via email to