mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
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.
This commit is contained in:
parent
715bf4523e
commit
91b3e1038f
@ -744,9 +744,11 @@ fi
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
/sbin/chkconfig --add libvirt-guests
|
/sbin/chkconfig --add libvirt-guests
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
# this doesn't do anything but allowing for libvirt-guests to be
|
if /sbin/chkconfig --list libvirt-guests | /bin/grep -q :on ; then
|
||||||
# stopped on the first shutdown
|
# this doesn't do anything but allowing for libvirt-guests to be
|
||||||
/sbin/service libvirt-guests start > /dev/null 2>&1 || true
|
# stopped on the first shutdown
|
||||||
|
/sbin/service libvirt-guests start > /dev/null 2>&1 || true
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun client -p /sbin/ldconfig
|
%postun client -p /sbin/ldconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user