]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
rpm: explicitly enable & start virtlogd on install
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Dec 2015 12:48:04 +0000 (12:48 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Dec 2015 11:08:16 +0000 (11:08 +0000)
commitda054f35ab3289c9114bc320338f14b3a88709b2
tree14512e79ec0885f44d0d28c22558db6ac12642d7
parent5cce775e92784d30692055bbc8b52b2aa0c9d496
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 <berrange@redhat.com>
libvirt.spec.in