]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt-guests: Don't throw errors if libvirtd is not installed
authorJiri Denemark <jdenemar@redhat.com>
Tue, 27 Jul 2010 12:21:51 +0000 (14:21 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 27 Jul 2010 12:21:51 +0000 (14:21 +0200)
commitd1018b1bdea5048ee7ae6f66bea89853b02e4702
tree85019c8617664ca09c3befa57b5c05a51c75d62e
parent71e92a1575b6653720b0f4c7a474b6e7baec72f3
libvirt-guests: Don't throw errors if libvirtd is not installed

When only client parts of libvirt are installed (i.e., no libvirtd
daemon), libvirt-guests init script in its default configuration would
throw seriously looking errors during host shutdown:

Running guests on default URI: error: unable to connect to
'/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No
such file or directory
error: failed to connect to the hypervisor

This patch changes the script to print rather harmless message in that
situation:

Running guests on default URI: libvirtd not installed; skipping this
URI.
daemon/libvirt-guests.init.in