From: Douglas Schilling Landgraf Date: Mon, 15 Aug 2011 07:44:39 +0000 (+0800) Subject: libvirtd.init.in: stop/restart() - wrong return value in case of failure X-Git-Tag: v0.9.5-rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841a403f9431af382a70d1be03993f5173feabb1;p=thirdparty%2Flibvirt.git 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. --- 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 }