310.accounting revision 28320
128263Spst#!/bin/sh
228263Spst#
328320Spst# $Id: 310.accounting,v 1.1.1.1 1997/08/16 17:04:00 pst Exp $
428263Spst#
528263Spst
628263Spstif [ -f /var/account/acct ] ; then
728263Spst    echo ""
828263Spst    echo "Rotating accounting logs and gathering statistics:"
928320Spst
1028263Spst    cd /var/account
1128263Spst    if [ -f acct.2 ] ; then mv -f acct.2 acct.3 ; fi
1228263Spst    if [ -f acct.1 ] ; then mv -f acct.1 acct.2 ; fi
1328263Spst    if [ -f acct.0 ] ; then mv -f acct.0 acct.1 ; fi
1428263Spst    cp -pf acct acct.0
1528263Spst    sa -s > /dev/null
1628263Spstfi
17