[PLUG] Controlling log rotation

David Fleck david.fleck at mchsi.com
Sat Jul 12 17:01:18 UTC 2014


On Sat, 2014-07-12 at 08:57 -0700, Rich Shepard wrote:
> On Sat, 12 Jul 2014, David Fleck wrote:
> 
> > Well, I'm out of ideas then. :)  On my OpenSUSE system, the mail log
> > rotation appears to be handled by /etc/logrotate.d/syslog.
> 
> David,
> 
>    Here, too. I don't see an explicit reference to syslog in
> /etc/logrotate.conf (which calls for weekly rotation), /etc/cron.weekly, or
> /etc/cron.daily. /etc/cron.daily/logrotate invokes '/usr/sbin/logrotate
> /etc/logrotate.conf' which calls /etc/cron.weekly ...
> 
>    Looks to me like it's self-referential or circular reasoning. That's why
> I'm trying to understand just what is being rotated when and I've not seen
> when /etc/logrotate.d/syslog is turned over.

My /etc/logrotate.conf has as its last line:

include /etc/logrotate.d

which I assume means "pull in everything in the /etc/logrotate.d
directory".





More information about the PLUG mailing list