[libvirt] [PATCH] libvirtd: Better initscript error reporting
Cole Robinson
crobinso at redhat.com
Wed Feb 24 17:55:15 UTC 2010
>From time to time I bork my install, and hate it when the initscript
returns no info. This patch makes things a bit more clear.
Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
daemon/libvirtd.init.in | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/daemon/libvirtd.init.in b/daemon/libvirtd.init.in
index 071fe2c..c5d4eee 100644
--- a/daemon/libvirtd.init.in
+++ b/daemon/libvirtd.init.in
@@ -32,8 +32,10 @@
# pidfile: @localstatedir@/run/libvirtd.pid
#
+LIBVIRTD_BIN="@sbindir@/libvirtd"
+
# Sanity checks.
-[ -x @sbindir@/libvirtd ] || exit 0
+[ ! -e $LIBVIRTD_BIN ] && echo "$LIBVIRTD_BIN not found." && exit 1
# Source function library.
. @sysconfdir@/rc.d/init.d/functions
--
1.6.5.2
More information about the libvir-list
mailing list