automatically enable accounting and rotate logs

This commit is contained in:
cgd 1994-02-26 03:29:23 +00:00
parent 3a18d3b2a5
commit b09f56e8b1
2 changed files with 13 additions and 11 deletions

View File

@ -67,15 +67,15 @@ if [ -f /etc/news.expire ]; then
/etc/news.expire /etc/news.expire
fi fi
#if [ -f /var/account ]; then if [ -f /var/account/acct ]; then
# echo "" ; echo "" ;
# echo "Purging accounting records:" ; echo "Purging accounting records:" ;
# mv /var/account/acct.2 /var/account/acct.3 ; mv /var/account/acct.2 /var/account/acct.3 ;
# mv /var/account/acct.1 /var/account/acct.2 ; mv /var/account/acct.1 /var/account/acct.2 ;
# mv /var/account/acct.0 /var/account/acct.1 ; mv /var/account/acct.0 /var/account/acct.1 ;
# cp /var/account/acct /var/account/acct.0 ; cp /var/account/acct /var/account/acct.0 ;
# sa -s > /dev/null ; sa -sq ;
#fi fi
echo "" echo ""
echo "Backup passwd and group files:" echo "Backup passwd and group files:"

6
etc/rc
View File

@ -1,5 +1,5 @@
# @(#)rc 5.27 (Berkeley) 6/5/91 # @(#)rc 5.27 (Berkeley) 6/5/91
# $Id: rc,v 1.33 1994/02/01 00:36:34 cgd Exp $ # $Id: rc,v 1.34 1994/02/26 03:29:27 cgd Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -160,7 +160,9 @@ echo clearing /tmp
find . ! -name . ! -name lost+found ! -name quotas \ find . ! -name . ! -name lost+found ! -name quotas \
-exec rm -rf -- {} \; -type d -prune) -exec rm -rf -- {} \; -type d -prune)
#echo 'turning on accounting'; accton /var/account/acct if [ -f /var/account/acct ]; then
echo 'turning on accounting'; accton /var/account/acct
fi
echo -n standard daemons: echo -n standard daemons:
echo -n ' update'; update echo -n ' update'; update