libvirt-guests: avoid sourcing failure

* tools/libvirt-guests.init.in (libvirtd): Skip function library
if it is not present.
Suggested by Guido Günther.
This commit is contained in:
Eric Blake 2010-12-17 17:26:03 -07:00
parent ed039abc09
commit a21db2952f
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ localstatedir=@localstatedir@
libvirtd=@sbindir@/libvirtd
# Source function library.
. "$sysconfdir"/rc.d/init.d/functions
test ! -r "$sysconfdir"/rc.d/init.d/functions ||
. "$sysconfdir"/rc.d/init.d/functions
URIS=default
ON_BOOT=start