Index: stable/2.2/etc/monthly =================================================================== --- stable/2.2/etc/monthly (revision 33186) +++ stable/2.2/etc/monthly (revision 33187) @@ -1,18 +1,33 @@ #!/bin/sh - # # @(#)monthly 5.5 (Berkeley) 6/17/91 # PATH=/bin:/usr/bin:/sbin:/usr/sbin host=`hostname -s` echo "Subject: $host monthly run output" -echo "" -echo "Doing login accounting:" -ac -p | sort -nr +1 +W=/var/log/wtmp +if [ -f $W ] ; then + # Work out what month it was yesterday + M=`date -v-1m +%h` + + mv -f $W $W.$M + touch $W + + if [ -x /usr/sbin/ac ] ; then + echo "" + echo "Doing login accounting:" + + ac -p -w $W.$M | sort -nr +1 + fi + + rm -f $W.$M.gz + gzip $W.$M +fi if [ -f /etc/monthly.local ]; then echo "" echo "Running monthly.local:" sh /etc/monthly.local fi Index: stable/2.2/etc/newsyslog.conf =================================================================== --- stable/2.2/etc/newsyslog.conf (revision 33186) +++ stable/2.2/etc/newsyslog.conf (revision 33187) @@ -1,13 +1,12 @@ # configuration file for newsyslog -# $Id$ +# $Id: newsyslog.conf,v 1.6.2.1 1997/02/05 14:18:24 mpp Exp $ # # logfilename owner.group mode count size time [ZB] /var/cron/log 600 3 100 * Z /var/log/amd.log 664 7 100 * Z /var/log/kerberos.log 664 7 100 * Z /var/log/lpd-errs 664 7 100 * Z /var/log/maillog 664 7 * 24 Z /var/log/messages 664 5 100 * Z /var/log/slip.log 600 3 100 * Z /var/log/ppp.log 600 3 100 * Z -/var/log/wtmp 664 7 * 168 ZB