[PATCH] libvirtd.init.in: stop/restart() - wrong return value in case of fail

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

 



Currently the function stop() always return 0 (OK) from killproc() even in case of
error.

Signed-off-by: Douglas Schilling Landgraf <dougsland@xxxxxxxxxx>
---
 daemon/libvirtd.init.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daemon/libvirtd.init.in b/daemon/libvirtd.init.in
index aa7870c..0697a2b 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
 }
 
-- 
1.7.1

--
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]