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:
parent
900e899739
commit
5c55c4ac18
@ -609,9 +609,6 @@ of device-mapper devices.
|
||||
%if %{enable_systemd}
|
||||
systemctl preset dm-event.socket > /dev/null 2>&1 || :
|
||||
%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
|
||||
%if %{enable_systemd}
|
||||
@ -626,6 +623,11 @@ if [ $1 = 0 ]; then
|
||||
%daemon_reload
|
||||
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
|
||||
%defattr(-,root,root,-)
|
||||
%{_sbindir}/dmeventd
|
||||
|
Loading…
Reference in New Issue
Block a user