scanlogs: remove special handling of expire.log

Julien ÉLIE julien at
Sun Nov 15 14:46:45 UTC 2009

Hi Florian,

>> Incidentally, I have just found out that a warning was in fact never
>> seen by the user because scanlogs rotates expire.log after the print
>> of the warning in that file...
>> Or maybe it should also be sent if "nomail" is used?
> I think so, it's a mistake the admin might not notice for a long time.

OK, I have just committed the change.

> I feel it's not going to be an easy operation, but I might
> investigate if I can make time next year.  I like the thought of easily
> using "dateext".

If it is mainly what you wish (naming ".20091115" instead of ".0"),
an option could be easily added to news.daily/scanlogs to do that :)
We could then use "find -mtime" to remove old files.

BTW, if you have logcycles: set to 10 in inn.conf and then to 5,
oldest files are not removed...  Which could be done if we used
"find -mtime" instead of explicit "rm" on file names.  So maybe
it is worth switching to use "find -mtime" anyway!

Julien ÉLIE

« Cette apostrophe me déconcerte et me réduit au silence,
  parce que l'homme sensible comme moi, tout entier à ce qu'on lui objecte,
  perd la tête, et ne se retrouve qu'au bas de l'escalier. » (Denis Diderot)

More information about the inn-workers mailing list