[PATCH] libvirt-guests: avoid sourcing failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* tools/libvirt-guests.init.in (libvirtd): Skip function library
if it is not present.
Suggested by Guido GÃnther.
---
 tools/libvirt-guests.init.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/libvirt-guests.init.in b/tools/libvirt-guests.init.in
index 5dab36b..e28938d 100644
--- a/tools/libvirt-guests.init.in
+++ b/tools/libvirt-guests.init.in
@@ -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
-- 
1.7.3.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]