1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/etc/periodic/daily/310.accounting
Paul Traina ad34f5a438 Cosmetic changes.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1997-08-17 17:55:45 +00:00

17 lines
414 B
Bash
Executable File

#!/bin/sh
#
# $Id: 310.accounting,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
#
if [ -f /var/account/acct ] ; then
echo ""
echo "Rotating accounting logs and gathering statistics:"
cd /var/account
if [ -f acct.2 ] ; then mv -f acct.2 acct.3 ; fi
if [ -f acct.1 ] ; then mv -f acct.1 acct.2 ; fi
if [ -f acct.0 ] ; then mv -f acct.0 acct.1 ; fi
cp -pf acct acct.0
sa -s > /dev/null
fi