Updated RPM scriplets with latest systemd-rpm macros

Resolves: #850161
This commit is contained in:
Jan Safranek 2012-08-27 13:18:46 +02:00
parent 0c0696b0d3
commit 66c70b753d

View File

@ -65,24 +65,13 @@ install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
%post %post
if [ $1 -eq 1 ] ; then %systemd_post ipmievd.service
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun %preun
if [ $1 -eq 0 ] ; then %systemd_preun ipmievd.service
# Package removal, not upgrade
/bin/systemctl --no-reload disable ipmievd.service > /dev/null 2>&1 || :
/bin/systemctl stop ipmievd.service > /dev/null 2>&1 || :
fi
%postun %postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || : %systemd_postun_with_restart ipmievd.service
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart ipmievd.service >/dev/null 2>&1 || :
fi
%triggerun -- ipmievd < 1.8.11-7 %triggerun -- ipmievd < 1.8.11-7
# Save the current service runlevel info # Save the current service runlevel info
@ -107,6 +96,7 @@ fi
%changelog %changelog
* Mon Aug 27 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-2 * Mon Aug 27 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-2
- Fixed starting ipmievd under systemd (#819234). - Fixed starting ipmievd under systemd (#819234).
- Updated RPM scriplets with latest systemd-rpm macros (#850161)
* Fri Aug 10 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-1 * Fri Aug 10 2012 Jan Safranek <jsafrane@redhat.com> - 1.8.12-1
- update to ipmitool-1.8.12 - update to ipmitool-1.8.12