Comment 63 for bug 350936

Revision history for this message
Marshall Kennard (marshall-ahoy) wrote :

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