Fixed rpm scritps to handle renamed freeipmi services
This commit is contained in:
parent
96939967ff
commit
eca1c96898
@ -2,7 +2,7 @@
|
||||
# Copyright (c) 2003 FreeIPMI Core Team
|
||||
#
|
||||
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
|
||||
Name: freeipmi
|
||||
Version: 0.8.2
|
||||
@ -103,31 +103,31 @@ fi
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%post bmc-watchdog
|
||||
/sbin/chkconfig --add freeipmi-bmc-watchdog
|
||||
/sbin/chkconfig --add bmc-watchdog
|
||||
|
||||
%preun bmc-watchdog
|
||||
if [ "$1" = 0 ]; then
|
||||
/sbin/service freeipmi-bmc-watchdog stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del freeipmi-bmc-watchdog
|
||||
/sbin/service bmc-watchdog stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del bmc-watchdog
|
||||
fi
|
||||
|
||||
%postun bmc-watchdog
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
/sbin/service freeipmi-bmc-watchdog condrestart >/dev/null 2>&1 || :
|
||||
/sbin/service bmc-watchdog condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%post ipmidetectd
|
||||
/sbin/chkconfig --add freeipmi-ipmidetectd
|
||||
/sbin/chkconfig --add ipmidetectd
|
||||
|
||||
%preun ipmidetectd
|
||||
if [ "$1" = 0 ]; then
|
||||
/sbin/service freeipmi-ipmidetectd stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del freeipmi-ipmidetectd
|
||||
/sbin/service ipmidetectd stop >/dev/null 2>&1
|
||||
/sbin/chkconfig --del ipmidetectd
|
||||
fi
|
||||
|
||||
%postun ipmidetectd
|
||||
if [ "$1" -ge "1" ] ; then
|
||||
/sbin/service/freeipmi-ipmidetectd condrestart >/dev/null 2>&1 || :
|
||||
/sbin/service ipmidetectd condrestart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%files
|
||||
@ -306,6 +306,9 @@ fi
|
||||
%{_mandir}/man8/ipmidetectd.8*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 14 2010 Jan Safranek <jsafrane@redhat.com> - 0.8.2-2
|
||||
- Fixed rpm scripts to handle new names of freeipmi services
|
||||
|
||||
* Thu Jan 7 2010 Jan Safranek <jsafrane@redhat.com> - 0.8.2-1
|
||||
- Update to freeipmi-0.8.2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user