mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
ed039abc09
commit
a21db2952f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue