Reload dm-event systemd service on upgrade.
This commit is contained in:
parent
d5036c49ae
commit
3ac57d1c2f
17
lvm2.spec
17
lvm2.spec
@ -67,7 +67,7 @@
|
|||||||
Summary: Userland logical volume management tools
|
Summary: Userland logical volume management tools
|
||||||
Name: lvm2
|
Name: lvm2
|
||||||
Version: 2.02.95
|
Version: 2.02.95
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sources.redhat.com/lvm2
|
URL: http://sources.redhat.com/lvm2
|
||||||
@ -603,15 +603,9 @@ fi
|
|||||||
%postun -n device-mapper-event
|
%postun -n device-mapper-event
|
||||||
%if %{enable_systemd}
|
%if %{enable_systemd}
|
||||||
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
|
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
|
||||||
#
|
if [ $1 -ge 1 ]; then
|
||||||
# We'd need systemd to call specific restart command (dmeventd -R) instead
|
/bin/systemctl reload dm-event.service > /dev/null 2>&1 || :
|
||||||
# of simple 'stop and start' - we need to keep any existing dmeventd
|
fi
|
||||||
# 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
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n device-mapper-event
|
%files -n device-mapper-event
|
||||||
@ -664,6 +658,9 @@ the device-mapper event library.
|
|||||||
/usr%{_libdir}/pkgconfig/devmapper-event.pc
|
/usr%{_libdir}/pkgconfig/devmapper-event.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 08 2012 Peter Rajnoha <prajnoha@redhat.com> - 2.02.95-2
|
||||||
|
- Reload dm-event systemd service on upgrade.
|
||||||
|
|
||||||
* Tue Mar 06 2012 Alasdair Kergon <agk@redhat.com> - 2.02.95-1
|
* Tue Mar 06 2012 Alasdair Kergon <agk@redhat.com> - 2.02.95-1
|
||||||
- If unspecified, adjust thin pool metadata and chunk size to fit into 128MB.
|
- If unspecified, adjust thin pool metadata and chunk size to fit into 128MB.
|
||||||
- Deactivation of failed thin check on thin pool returns success.
|
- Deactivation of failed thin check on thin pool returns success.
|
||||||
|
Loading…
Reference in New Issue
Block a user