parent
abb5607a38
commit
ba1e66b08d
@ -96,64 +96,31 @@ fi
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post bmc-watchdog
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post bmc-watchdog.service
|
||||
|
||||
%preun bmc-watchdog
|
||||
if [ $1 -eq 0 ] ; then
|
||||
# Package removal, not upgrade
|
||||
/bin/systemctl --no-reload disable bmc-watchdog.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop bmc-watchdog.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun bmc-watchdog.service
|
||||
|
||||
%postun bmc-watchdog
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 -ge 1 ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
/bin/systemctl try-restart bmc-watchdog.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart bmc-watchdog.service
|
||||
|
||||
%post ipmiseld
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post ipmiseld.service
|
||||
|
||||
%preun ipmiseld
|
||||
if [ $1 -eq 0 ] ; then
|
||||
# Package removal, not upgrade
|
||||
/bin/systemctl --no-reload disable ipmiseld.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop ipmiseld.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun ipmiseld.service
|
||||
|
||||
%postun ipmiseld
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 -ge 1 ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
/bin/systemctl try-restart ipmiseld.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart ipmiseld.service
|
||||
|
||||
%post ipmidetectd
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post ipmidetectd.service
|
||||
|
||||
%preun ipmidetectd
|
||||
if [ $1 -eq 0 ] ; then
|
||||
# Package removal, not upgrade
|
||||
/bin/systemctl --no-reload disable ipmidetectd.service > /dev/null 2>&1 || :
|
||||
/bin/systemctl stop ipmidetectd.service > /dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun ipmidetectd.service
|
||||
|
||||
%postun ipmidetectd
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 -ge 1 ] ; then
|
||||
# Package upgrade, not uninstall
|
||||
/bin/systemctl try-restart ipmidetectd.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart ipmidetectd.service
|
||||
|
||||
%triggerun -- freeipmi-bmc-watchdog < 1.1.1-2
|
||||
# Save the current service runlevel info
|
||||
@ -390,6 +357,7 @@ fi
|
||||
|
||||
%changelog
|
||||
* Mon Aug 27 2012 Jan Safranek <jsafrane@redhat.com> - 1.2.1-1
|
||||
- Reworked RPM scriptlets to use systemd-rpm macros (#850117).
|
||||
- Updated to freeipmi-1.2.1:
|
||||
- Support new ipmiseld daemon, a daemon that regularly polls the SEL
|
||||
and stores the events to the local syslog.
|
||||
|
Loading…
Reference in New Issue
Block a user