- fix the logrotate change
This commit is contained in:
parent
39b0c1714f
commit
b9bd914a98
@ -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: 3%{?dist}
|
Release: 4%{?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/
|
||||||
@ -106,7 +106,7 @@ cat > $RPM_BUILD_ROOT/etc/logrotate.d/psacct <<EOF
|
|||||||
#prerotate loses accounting records, let's no
|
#prerotate loses accounting records, let's no
|
||||||
# prerotate
|
# prerotate
|
||||||
# /etc/init.d/psacct status;
|
# /etc/init.d/psacct status;
|
||||||
# STATUS=$?
|
# STATUS=\$?
|
||||||
# %{_sbindir}/accton
|
# %{_sbindir}/accton
|
||||||
# endscript
|
# endscript
|
||||||
compress
|
compress
|
||||||
@ -116,7 +116,7 @@ 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 ]
|
if [ \$STATUS -eq 0 ]
|
||||||
then
|
then
|
||||||
%{_sbindir}/accton %{accounting_logdir}/pacct
|
%{_sbindir}/accton %{accounting_logdir}/pacct
|
||||||
fi
|
fi
|
||||||
@ -184,6 +184,9 @@ fi
|
|||||||
%{_infodir}/accounting.info.gz
|
%{_infodir}/accounting.info.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Jan 27 2010 Ivana Hutarova Varekova <varekova@redhat.com> - 6.5.1-3
|
||||||
- Resolves: #523774
|
- Resolves: #523774
|
||||||
process accounting enabled unconditionally from daily cron job
|
process accounting enabled unconditionally from daily cron job
|
||||||
|
Loading…
Reference in New Issue
Block a user