19f1101052
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.)
15 lines
231 B
Bash
Executable File
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
|