diff --git a/lvm2.spec b/lvm2.spec index 68a374d..81db7b8 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -67,7 +67,7 @@ Summary: Userland logical volume management tools Name: lvm2 Version: 2.02.95 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Base URL: http://sources.redhat.com/lvm2 @@ -603,15 +603,9 @@ fi %postun -n device-mapper-event %if %{enable_systemd} /bin/systemctl daemon-reload > /dev/null 2>&1 || : -# -# We'd need systemd to call specific restart command (dmeventd -R) instead -# of simple 'stop and start' - we need to keep any existing dmeventd -# registrations. Also, we can't kill dmeventd with existing registrations -# with SIGTERM, we would need to use SIGKILL instead (but losing registrations). -# -# if [ $1 -ge 1 ]; then -# /bin/systemctl try-restart dm-event.service > /dev/null 2>&1 || : -# fi +if [ $1 -ge 1 ]; then + /bin/systemctl reload dm-event.service > /dev/null 2>&1 || : +fi %endif %files -n device-mapper-event @@ -664,6 +658,9 @@ the device-mapper event library. /usr%{_libdir}/pkgconfig/devmapper-event.pc %changelog +* Thu Mar 08 2012 Peter Rajnoha - 2.02.95-2 +- Reload dm-event systemd service on upgrade. + * Tue Mar 06 2012 Alasdair Kergon - 2.02.95-1 - If unspecified, adjust thin pool metadata and chunk size to fit into 128MB. - Deactivation of failed thin check on thin pool returns success.