[libvirt] Fixed service handling in specfile

Daniel P. Berrange berrange at fedoraproject.org
Wed Apr 4 11:03:12 UTC 2012


commit d6b0635d3dfe4d8cdbf8f8df12e52fb7a7680763
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Wed Apr 4 11:37:36 2012 +0100

    Fixed service handling in specfile

 libvirt.spec |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/libvirt.spec b/libvirt.spec
index cdd1ad1..369f37b 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -1027,14 +1027,6 @@ fi
 %if %{with_systemd}
 %else
 /sbin/chkconfig --add libvirt-guests
-if [ $1 -ge 1 ]; then
-    level=$(/sbin/runlevel | /bin/cut -d ' ' -f 2)
-    if /sbin/chkconfig --levels $level libvirt-guests; then
-        # this doesn't do anything but allowing for libvirt-guests to be
-        # stopped on the first shutdown
-        /sbin/service libvirt-guests start > /dev/null 2>&1 || true
-    fi
-fi
 %endif
 
 %postun client -p /sbin/ldconfig


More information about the scm-commits mailing list