[plug] Rotating logs on a Workstation...

Trevor Phillips T.Phillips at murdoch.edu.au
Thu Oct 2 12:32:25 WST 2003


On Thursday 02 October 2003 12:04, Leon Brooks wrote:
> On Thu, 2 Oct 2003 08:27, Trevor Phillips wrote:
> > Any idea how it determines what's weekly, and what's daily, and why
> > this workstation doesn't have messages and a few others in either?
>
> Mandrake does it in /etc/crontab, Debian is likely to have a /etc/cron.d
> with files called daily, weekly etc in that which is "run-parts'ed"
> from crontab. Here's the chunk out of my crontab:

Uh, I know that bit. This is something different. Debian has /etc/cron.daily/
sysklogd and /etc/cron.weekly/sysklogd, which rotate syslog, messages, etc... 
It rotates certain log files determined by running /usr/sbin/
syslogd-listfiles with various options. By default, this lists the logs to be 
rotated daily. With the -w option, it lists the logs to be rotated weekly.

My question is: How does it determine what is daily, and what is weekly? On 
most of my systems, daily is:
   syslog
... and weekly is:
   mail.warn uucp.log user.log daemon.log messages debug auth.log mail.err 
mail.log kern.log lpr.log mail.info

On this trouble workstation, weekly is instead:
   mail.log mail.err mail.info mail.warn uucp.log
Many missing, including noisy ones like "messages".

If I run syslogd-listfiles with the -a option (all), it DOES list messages and 
the other giles.

So, my question(s) really is/are:
  *Why are messages and others missing from this one machine's weekly list?
  *How can I change a file listed a weekly to daily?
  *How does syslogd-listfiles determine what the logs are, and whether they're 
daily or weekly, and how can these settings be edited?

-- 
. Trevor Phillips             -           http://jurai.murdoch.edu.au/ . 
: Web Technical Administrator     -          T.Phillips at murdoch.edu.au : 
| IT Services                        -              Murdoch University | 
 >--------------------------------------------------------------------<
| On nights such as this, evil deeds are done. And good deeds, of     /
| course. But mostly evil, on the whole.                             /
 \      -- (Terry Pratchett, Wyrd Sisters)                          /

_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list