|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: daily,v 1.43 2003/03/28 21:32:30 jmc Exp $ |
|
|
|
# $OpenBSD: daily,v 1.44 2003/06/03 22:56:56 mickey Exp $ |
|
|
|
# From: @(#)daily 8.2 (Berkeley) 1/25/94 |
|
|
|
# |
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin |
|
|
@ -82,10 +82,10 @@ fi |
|
|
|
if [ -f /var/account/acct ]; then |
|
|
|
echo "" |
|
|
|
echo "Purging accounting records:" |
|
|
|
mv /var/account/acct.2 /var/account/acct.3 |
|
|
|
mv /var/account/acct.1 /var/account/acct.2 |
|
|
|
mv /var/account/acct.0 /var/account/acct.1 |
|
|
|
cp /var/account/acct /var/account/acct.0 |
|
|
|
mv -f /var/account/acct.2 /var/account/acct.3 |
|
|
|
mv -f /var/account/acct.1 /var/account/acct.2 |
|
|
|
mv -f /var/account/acct.0 /var/account/acct.1 |
|
|
|
cp -f /var/account/acct /var/account/acct.0 |
|
|
|
sa -sq |
|
|
|
fi |
|
|
|
|
|
|
|