From: Martin Kletzander Date: Fri, 24 Feb 2012 11:28:58 +0000 (+0100) Subject: Fixed service handling in specfile X-Git-Tag: v0.9.11-rc1~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801a60ff88e06087dd8fc2cf09b6b7b6b6d83f6d;p=thirdparty%2Flibvirt.git Fixed service handling in specfile After adding the libvirt-guests service into usual runlevels, we used to start the libvirt-guests service. However this is usually not a good practice. As mentioned on fedoraproject wiki, the installations can be in changeroots, in an installer context, or in other situations where we don't want the services autostarted. --- diff --git a/libvirt.spec.in b/libvirt.spec.in index 67cde23d9a..072fd8eaac 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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