Fixed service handling in specfile

remotes/origin/f17
Daniel P. Berrange 2012-04-04 11:37:36 +01:00
parent 46c95e5a07
commit ceac8fe559
1 changed files with 0 additions and 8 deletions

View File

@ -1030,14 +1030,6 @@ fi
%if %{with_systemd} %if %{with_systemd}
%else %else
/sbin/chkconfig --add libvirt-guests /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 %endif
%postun client -p /sbin/ldconfig %postun client -p /sbin/ldconfig