From 841a403f9431af382a70d1be03993f5173feabb1 Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Mon, 15 Aug 2011 15:44:39 +0800 Subject: [PATCH] libvirtd.init.in: stop/restart() - wrong return value in case of failure The function stop() was always returning 0 (OK) from killproc() even in case of error. --- AUTHORS | 1 + daemon/libvirtd.init.in | 2 ++ 2 files changed, 3 insertions(+) diff --git a/AUTHORS b/AUTHORS index 9292fb655a..2b61715f0a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -188,6 +188,7 @@ Patches have also been contributed by: Peter Krempa Nan Zhang Wieland Hoffmann + Douglas Schilling Landgraf [....send patches to get your name here....] diff --git a/daemon/libvirtd.init.in b/daemon/libvirtd.init.in index aa7870c86c..0697a2b692 100644 --- a/daemon/libvirtd.init.in +++ b/daemon/libvirtd.init.in @@ -76,6 +76,8 @@ stop() { rm -f @localstatedir@/lock/subsys/$SERVICE rm -f $PIDFILE rm -rf @localstatedir@/cache/libvirt/* + else + exit $RETVAL fi } -- 2.47.2