[lvm2] Reload dm-event systemd service on upgrade.
Peter Rajnoha
prajnoha at fedoraproject.org
Thu Mar 8 13:45:18 UTC 2012
commit 3ac57d1c2f9ff85423c79df3da4c2755f06d7984
Author: Peter Rajnoha <prajnoha at redhat.com>
Date: Thu Mar 8 14:44:49 2012 +0100
Reload dm-event systemd service on upgrade.
lvm2.spec | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
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 <prajnoha at redhat.com> - 2.02.95-2
+- Reload dm-event systemd service on upgrade.
+
* Tue Mar 06 2012 Alasdair Kergon <agk at redhat.com> - 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.
More information about the scm-commits
mailing list