Re: logrotate strangeness (nothing worrisome however)
On Sat, 2007-05-19 at 12:29 +0900, Yukio Shiiya wrote:
> Hi Jim,
> First of all, sorry for my poor English.
No worries, I'm pretty sure that my alternate language skills pare in
> On Fri, 18 May 2007 19:30:30 -0400
> Jim Popovitch <firstname.lastname@example.org> wrote:
> > I've noticed something strange with logrotate, looking for insight and
> > explanation if you have one.
> > ls -1 /var/log/syslog* shows:
> > /var/log/syslog
> > /var/log/syslog.0
> > /var/log/syslog.1.gz
> > /var/log/syslog.2.gz
> > /var/log/syslog.3.gz
> > /var/log/syslog.4.gz
> > /var/log/syslog.5.gz
> > /var/log/syslog.6.gz
> > which tells me that delaycompress is delaying the gzipping of .0 until
> > the next rotation. This is nice and works as expected.
> Probably it is a misapprehension that you think that rotation of the
> syslog is carried out by logrotate command.
> Rotation of the syslog is carried out by the savelog command in the two
> shell scripts "/etc/cron.daily/sysklogd" and "/etc/cron.weekly/sysklogd".
> (Please see the contents of those shell scripts for details.)
> And it seems to be the work as expected that the savelog command (it's
> a shell script in fact) starts the rotation of specified file from .0.
> (cf. savelog(8))
Ahhh. That makes sense now. Thank you for pointing this out.