Reenabled rotation of log files and killing of syslogd now that the
lockup problem is fixed.
This commit is contained in:
parent
e501a58197
commit
c7e82fb0a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=369
36
etc/daily
36
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 ""
|
||||
|
@ -12,7 +12,7 @@ echo "Subject: $host monthly run output"
|
||||
|
||||
echo ""
|
||||
echo -n "Rotating log files:"
|
||||
#cd /var/log
|
||||
cd /var/log
|
||||
for i in kerberos.log lpd-errs wtmp; do
|
||||
echo -n " $i"
|
||||
if [ -f $i.5 ]; then mv -f $i.5 $i.6; fi
|
||||
|
24
etc/weekly
24
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:"
|
||||
|
Loading…
Reference in New Issue
Block a user