]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt-guests: Remove LISTFILE if it's empty when stopping service
authorOsier Yang <jyang@redhat.com>
Tue, 15 May 2012 08:22:28 +0000 (16:22 +0800)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 22:16:49 +0000 (18:16 -0400)
commit3291646d4590dbed129d596023aa4ff64d19d915
treedd6aa01850d1e5c38e40b6e566011575e1164603
parente88212d583c7ee9f59b4dab573f6d744ef93d8a4
libvirt-guests: Remove LISTFILE if it's empty when stopping service

$LISTFILE is created even no domain is running, and the empty
$LISTFILE could cause improper service status.

    stopped ,with saved guests

Which is not right, as there is no domain was saved.
(cherry picked from commit c086af6b9b2296e2ab45e571f0fdfca097f7f127)
tools/libvirt-guests.init.sh