diff --git a/spec/packages.inc b/spec/packages.inc index 41f6ff73d..85c9e6d9e 100644 --- a/spec/packages.inc +++ b/spec/packages.inc @@ -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