freebsd-dev/etc/periodic/monthly/200.accounting
Garrett Wollman 19f1101052 Now that newsyslog is capable of doing this at a specific time,
let it rotate /var/log/wtmp again, and update monthly/200.accounting to
take this into account.  (Some sites might want to change the parameters
of the rotation; it's easier to do this when it's all centralized in
newsyslog.conf.)
1999-01-28 20:03:31 +00:00

15 lines
231 B
Bash
Executable File

#!/bin/sh -
#
# $Id: 200.accounting,v 1.2 1998/02/09 11:36:43 danny Exp $
#
W=/var/log/wtmp
if [ -f ${W}.0 ] ; then
if [ -x /usr/sbin/ac ] ; then
echo ""
echo "Doing login accounting:"
ac -p -w ${W}.0 | sort -nr +1
fi
fi