auto-import changelog data from sysstat-3.2.4-5.src.rpm

Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
- crontab entry was still incorrect. Fixed.
Mon Oct 09 2000 Preston Brown <pbrown@redhat.com>
- make sure disk accounting is enabled to fix iostat -l, -p (#16268)
- crontab entries were missing the user (root) to run as (#18212)
This commit is contained in:
cvsdist 2004-09-09 12:54:11 +00:00
parent ebf312191e
commit 6e3a36cae5

View File

@ -1,6 +1,6 @@
Name: sysstat Name: sysstat
Version: 3.2.4 Version: 3.2.4
Release: 3 Release: 5
Summary: Includes the sar and iostat system monitoring commands. Summary: Includes the sar and iostat system monitoring commands.
License: GPL License: GPL
Group: Applications/System Group: Applications/System
@ -36,11 +36,23 @@ install -m 644 crontab $RPM_BUILD_ROOT%{_libdir}/sa/crontab.sa
if [ `id -u` = "0" -a "$1" = "1" ]; then if [ `id -u` = "0" -a "$1" = "1" ]; then
cat >> /etc/crontab <<EOF cat >> /etc/crontab <<EOF
# sysstat # sysstat
0 * * * 0,6 %{_libdir}/sa/sa1 600 6 & 0 * * * 0,6 root %{_libdir}/sa/sa1 600 6 &
5 19 * * * %{_libdir}/sa/sa2 -A & 5 19 * * * root %{_libdir}/sa/sa2 -A &
EOF EOF
fi fi
%triggerpostun -- sysstat <= 3.2.4-4
# earlier versions of sysstat had an incorrect crontab entry. fix it.
if [ `id -u` = "0" -a "$1" = "2" ]; then
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
cat >> /tmp/crontab.$$ <<EOF
# sysstat
0 * * * 0,6 root %{_libdir}/sa/sa1 600 6 &
5 19 * * * root %{_libdir}/sa/sa2 -A &
EOF
mv /tmp/crontab.$$ /etc/crontab && chmod 644 /etc/crontab
fi
%postun %postun
if [ `id -u` = "0" -a "$1" = "0" ]; then if [ `id -u` = "0" -a "$1" = "0" ]; then
egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$ egrep -v 'sysstat|sa1|sa2' /etc/crontab > /tmp/crontab.$$
@ -67,6 +79,13 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/locale/*/LC_MESSAGES/* %{_datadir}/locale/*/LC_MESSAGES/*
%changelog %changelog
* Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
- crontab entry was still incorrect. Fixed.
* Mon Oct 09 2000 Preston Brown <pbrown@redhat.com>
- make sure disk accounting is enabled to fix iostat -l, -p (#16268)
- crontab entries were missing the user (root) to run as (#18212)
* Tue Aug 22 2000 Preston Brown <pbrown@redhat.com> * Tue Aug 22 2000 Preston Brown <pbrown@redhat.com>
- enable IO accounting now that kernel supports it - enable IO accounting now that kernel supports it