summaryrefslogtreecommitdiffstats
path: root/etc/weekly
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-08-31 16:29:05 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-08-31 16:29:05 +0000
commit89fe9552049fe4ba52a781cd1a5ac555a79c86ab (patch)
treebe47a4f8514d72c33213c999605d3a1c3ac861cf /etc/weekly
parent9833e48d9a9937acb16c32e1a1bbd124565cf82e (diff)
downloadFreeBSD-src-89fe9552049fe4ba52a781cd1a5ac555a79c86ab.zip
FreeBSD-src-89fe9552049fe4ba52a781cd1a5ac555a79c86ab.tar.gz
Reenabled rotation of log files and killing of syslogd now that the
lockup problem is fixed.
Diffstat (limited to 'etc/weekly')
-rw-r--r--etc/weekly24
1 files changed, 10 insertions, 14 deletions
diff --git a/etc/weekly b/etc/weekly
index bf7c075..42a32f9 100644
--- a/etc/weekly
+++ b/etc/weekly
@@ -43,20 +43,16 @@ if [ -f /usr/lib/uucp/clean.weekly ]; then
fi
echo ""
-# 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 "Rotating messages:"
-#cd /var/log
-#if [ -f messages.2 ]; then mv -f messages.2 messages.3; fi
-#if [ -f messages.1 ]; then mv -f messages.1 messages.2; fi
-#if [ -f messages.0 ]; then mv -f messages.0 messages.1; fi
-#mv -f messages messages.0
-#cp /dev/null messages
-#chmod 644 messages
-#kill -1 `cat /var/run/syslog.pid`
-#cd /
+echo "Rotating messages:"
+cd /var/log
+if [ -f messages.2 ]; then mv -f messages.2 messages.3; fi
+if [ -f messages.1 ]; then mv -f messages.1 messages.2; fi
+if [ -f messages.0 ]; then mv -f messages.0 messages.1; fi
+mv -f messages messages.0
+cp /dev/null messages
+chmod 644 messages
+kill -1 `cat /var/run/syslog.pid`
+cd /
echo ""
echo "Rebuilding locate database:"
OpenPOWER on IntegriCloud