提交 91b3e103 编写于 作者: D Dan Kenigsberg 提交者: Eric Blake

spec: do not start libvirt-guests if that service is off

starting a service during rpm installation is impolite. It is even worse if done
during upgrade, for a service that was explicitly turned off.
上级 715bf452
......@@ -744,9 +744,11 @@ fi
/sbin/ldconfig
/sbin/chkconfig --add libvirt-guests
if [ $1 -ge 1 ]; 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
if /sbin/chkconfig --list libvirt-guests | /bin/grep -q :on ; 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
%postun client -p /sbin/ldconfig
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册