From 33c5bdb9ab3aeaafcd9fdcb53962cff1484c52ff Mon Sep 17 00:00:00 2001 From: graichen Date: Fri, 5 Jan 1996 10:09:13 +0000 Subject: changed /etc/[daily,weekly,monthly] to not rotate the logfiles by "hand", changed /etc/crontab to call /usr/sbin/newsyslog every hour (the entry was there before - but we haven't had any newsyslog until today :-) and changed /etc/inetd.conf to also contain (commentet out) entries for rpc.rquotad and rpc.sprayd (taken from NetBSD) --- etc/daily | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'etc/daily') diff --git a/etc/daily b/etc/daily index c93fe52..f36e6d4 100644 --- a/etc/daily +++ b/etc/daily @@ -34,19 +34,6 @@ if [ -f /etc/news.expire ]; then /etc/news.expire fi -if [ -d /var/account ] ; then - echo "" - echo "Purging accounting records:" - 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 - if [ -f acct ] ; then - cp -pf acct acct.0 - sa -s > /dev/null - fi -fi - echo "" echo "Backup passwd and group files:" if [ ! -f $bak/master.passwd.bak ] ; then @@ -90,23 +77,6 @@ echo "" echo "Running calendar:" calendar -a -echo "" -echo "Rotating mail log:" -cd /var/log -rm -f maillog.7 -if [ -f maillog.6 ]; then mv -f maillog.6 maillog.7; fi -if [ -f maillog.5 ]; then mv -f maillog.5 maillog.6; fi -if [ -f maillog.4 ]; then mv -f maillog.4 maillog.5; fi -if [ -f maillog.3 ]; then mv -f maillog.3 maillog.4; fi -if [ -f maillog.2 ]; then mv -f maillog.2 maillog.3; fi -if [ -f maillog.1 ]; then mv -f maillog.1 maillog.2; fi -if [ -f maillog.0 ]; then mv -f maillog.0 maillog.1; fi -mv -f maillog maillog.0 -cp /dev/null maillog -chmod 644 maillog -kill -1 `cat /var/run/syslog.pid` -cd / - if [ -d /var/spool/uucp -a -f /etc/uuclean.daily ]; then echo "" echo "Cleaning up UUCP:" -- cgit v1.1