- fix the logrotate change

This commit is contained in:
Ivana Varekova 2010-01-28 08:30:26 +00:00
parent 39b0c1714f
commit b9bd914a98

View File

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