From 89fe9552049fe4ba52a781cd1a5ac555a79c86ab Mon Sep 17 00:00:00 2001 From: rgrimes Date: Tue, 31 Aug 1993 16:29:05 +0000 Subject: Reenabled rotation of log files and killing of syslogd now that the lockup problem is fixed. --- etc/daily | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'etc/daily') diff --git a/etc/daily b/etc/daily index 0640b4b..37e9df5 100644 --- a/etc/daily +++ b/etc/daily @@ -85,26 +85,22 @@ echo "" echo "Running calendar:" calendar -a -# Due to a console sub system bug doing the kill -1 of syslogd -# will lock up the console. This has been disabled until that -# is fixed. -# -#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 / +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 "" -- cgit v1.1