Package: acct Version: 6.3.99+6.4pre1-4 Severity: whishlist Tags: patch Hi,
in the attachment is a tar.gz file with includes the some modified
scripts for init and cron (daily, monthly) which will fix the bugs
#375712 and #377835 too.
/etc/init.d/acct: use /var/account/pacct if the $ACCT_LOGFILE don't
exists.
Exit generally if ACCT_ENABLE isn't "1" and not only
in the start case.
Removed the if clause for error code 16, because there
won't be returned such a error code if acct is already
running.
logger will use the daemon facility and notice level
and not the file /var/log/daemon.log, because somebody
(like me) can have another syslog config and removed
the daemon.log file.
fixed the bug #377835.
/etc/cron.daily/acct: use /var/account/pacct if the $ACCT_LOGFILE don't
exists (same as in /etc/init.d/acct).
Stop before the savelog do his job.
Rewrote the $ACCT_LOGGING to $ACCT_DAILY_CYCLE.
Exit if $ACCT_DAILY_CYCLE is less than two,
savelog needs a number greater than one for cycle.
fixed the bug #377835.
/etc/cron.monthly/acct: added ACCT_MONTHLY_CYCLE for saveloging the
report file, useful if logrotate.conf cycle the
wtmp file more than one.
change the permission to 640 and root:adm to the
report file.
fixed the bug #375712.
--
Bill Gates said: "It requires Windows XP or better", so I installed Linux.
acct_scripts.tar.gz
Description: application/gzip

