1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

spec: move dmeventd -R from post to posttrans script for device-mapper-event package

See also https://bugzilla.redhat.com/show_bug.cgi?id=1382688.
This commit is contained in:
Peter Rajnoha 2016-10-12 13:50:22 +02:00
parent 900e899739
commit 5c55c4ac18

View File

@ -609,9 +609,6 @@ of device-mapper devices.
%if %{enable_systemd} %if %{enable_systemd}
systemctl preset dm-event.socket > /dev/null 2>&1 || : systemctl preset dm-event.socket > /dev/null 2>&1 || :
%endif %endif
if [ -e %{_default_pid_dir}/dmeventd.pid ]; then
%{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
fi
%preun -n device-mapper-event %preun -n device-mapper-event
%if %{enable_systemd} %if %{enable_systemd}
@ -626,6 +623,11 @@ if [ $1 = 0 ]; then
%daemon_reload %daemon_reload
fi fi
%posttrans -n device-mapper-event
if [ -e %{_default_pid_dir}/dmeventd.pid ]; then
%{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
fi
%files -n device-mapper-event %files -n device-mapper-event
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_sbindir}/dmeventd %{_sbindir}/dmeventd