rpm: explicitly enable & start virtlogd on install
rpm: explicitly enable & start virtlogd on install

When installing the libvirt-daemon RPM, we have a %post rule to
enable the libvirtd.service, virtlockd.socket and virtlogd.socket
files. This is only done, however, when the RPM is first installed,
not when upgrading RPMs. So virtlogd will not get activated on
upgrading, which is a problem as libvirt qemu driver will expect
it to be available by default.

This adds a trigger that is run when uninstalling libvirt-daemon
older than 1.3.0 that will enable & start virtlogd.socket if
libvirtd is enabled and/or started. Using the trigger rather
than %post ensures that it only runs once, allowing admins to
disable it explicitly thereafter without future upgrades
re-enabling it.

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

andreabolognani/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,olafhering/libvirt,crobinso/libvirt,VenkatDatta/libvirt,zippy2/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,datto/libvirt,olafhering/libvirt,crobinso/libvirt,datto/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,rlaager/libvirt,rlaager/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,zippy2/libvirt,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,olafhering/libvirt,VenkatDatta/libvirt,zippy2/libvirt,datto/libvirt,taget/libvirt,andreabolognani/libvirt,zippy2/libvirt,fabianfreyer/libvirt,datto/libvirt,crobinso/libvirt,nertpinx/libvirt,taget/libvirt,eskultety/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,nertpinx/libvirt,rlaager/libvirt,eskultety/libvirt,rlaager/libvirt,olafhering/libvirt,libvirt/libvirt,jfehlig/libvirt,nertpinx/libvirt,libvirt/libvirt,eskultety/libvirt,taget/libvirt,taget/libvirt,andreabolognani/libvirt,crobinso/libvirt,eskultety/libvirt,rlaager/libvirt,libvirt/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,datto/libvirt,jfehlig/libvirt,taget/libvirt