cron.daily runs a script sysklogd to rotate the logs in /var/log with
savelog. I have added some logs to the defaults, but one of them doesn't
get rotated. Is there a way to reconfigure what happens with this script:
#! /bin/sh
# sysklogd Cron script to rotate system log files daily.
#
# If you want to rotate logfiles daily, edit
# this script.
#
# Written by Martin Schulze <[EMAIL PROTECTED]>.
# $Id: cron.daily,v 1.1 1997/06/10 21:07:41 joey Exp $
cd /var/log
for LOG in syslog
do
if [ -f $LOG ]; then
savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
fi
done
# Restart syslogd
#
/etc/init.d/sysklogd reload
It may be obvious, but I am a bit bash-challenged.
Bob
----
Bob Nielsen Internet: [EMAIL PROTECTED]
Tucson, AZ AMPRnet: [EMAIL PROTECTED]
http://www.primenet.com/~nielsen
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble? e-mail to [EMAIL PROTECTED] .