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