- Resolves: #523774 process accounting enabled unconditionally from daily

cron job
This commit is contained in:
Ivana Varekova 2010-01-27 15:44:46 +00:00
parent aeeb9ad168
commit 39b0c1714f

View File

@ -12,7 +12,7 @@
Summary: Utilities for monitoring process activities
Name: psacct
Version: 6.5.1
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+
Group: Applications/System
URL: ftp://ftp.gnu.org/pub/gnu/acct/
@ -105,6 +105,8 @@ cat > $RPM_BUILD_ROOT/etc/logrotate.d/psacct <<EOF
%{accounting_logdir}/pacct {
#prerotate loses accounting records, let's no
# prerotate
# /etc/init.d/psacct status;
# STATUS=$?
# %{_sbindir}/accton
# endscript
compress
@ -114,7 +116,10 @@ cat > $RPM_BUILD_ROOT/etc/logrotate.d/psacct <<EOF
rotate 31
create 0600 root root
postrotate
if [ $STATUS -eq 0 ]
then
%{_sbindir}/accton %{accounting_logdir}/pacct
fi
endscript
}
EOF
@ -179,6 +184,10 @@ fi
%{_infodir}/accounting.info.gz
%changelog
* Wed Jan 27 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 6.5.1-3
- Resolves: #523774
process accounting enabled unconditionally from daily cron job
* Mon Jan 4 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 6.5.1-2
- fix initscript (accton parameters changed)
- fix lastcomm setings (#550229 - confusion about accounting file