[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

annoying log rotations on potato!



this is really suprising. in general debian is
very good at centralizing tasks. so im pretty
suprised to see so many independent ways for
rotating log files.

first was my bout with radius trying to get the
system to stop rotating the logs daily. turns
out a cron script installed by the radius package
handles that, overriding settings in logrotate.

now im trying to stop the rotation of mail.log
so i can have it rotated by logrotate as well.
i added a buncha cron scripts to track that log
and found it was rotated yesterday(not by logrotate)

i traced it down to the sysklogd cron.weekly script.

cd /var/log
for LOG in `syslogd-listfiles --weekly`
do
   if [ -f $LOG ]; then
      savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
   fi
done


sure enough syslogd-listfiles --weekly shows
up mail.log !!

anyone know how i can remove mail.log from syslogd-listfiles ?
it says its ocntrolled by syslog.conf but i don't see
much in there that would control this ..driving me
up the wall :( i suppose i could just disable that
cron entry and add the rest of the log files to logrotate,
but it would be nice to know the above.

i basically want all major logs to be rotated monthly
instead of weekly or daily. and keep 12 months worth of
logs. the systems in question haven't been rebooted in
almost 8 months so its not like im concerned about
a crash or anything.

tho i really do need to get syslog servers up and
going but thats another day ..

thanks

nate






Reply to: