[Tfug] logrotate config for rotating mail logs
Michael Stenner
mstenner at ece.arizona.edu
Sat Jul 17 08:52:11 MST 2004
On Fri, Jul 16, 2004 at 02:18:05PM -0700, elemint at theriver.com wrote:
> I have added the below config to the bottom of logrotate.conf to
> rotate my postfix mail logs on my Debian system.. The problem is that
> these are still not being rotated daily, any suggestions?
Well, I see a couple of bugs, but nothing that would obviously break
it completely.
> "/var/log/mail.log" /var/log/mail.log {
Here, you've effectively specified the same file twice. It's not
obvious what that would lead to. This might be your problem.
> daily
> rotate 365
> delaycompress
delaycompress has no effect unless you also specify "compress", which
might have been set globally, so that's probably OK.
> create
> postrotate
> /utilities/mail.stop && /utilities/mail.start
> endscript
Can't comment on the script, but I can't imagine that's your problem.
> }
Now, if there is some other script somewhere that's trying to rotate
things, the two might be dueling.
Do you have any other diagnostic information? They're not being
rotated daily. What's happening? Messages in the logs? Rotated on
some other timescale? Etc.
-Michael
--
Michael D. Stenner mstenner at ece.arizona.edu
ECE Department, the University of Arizona 520-626-1619
1230 E. Speedway Blvd., Tucson, AZ 85721-0104 ECE 524G
More information about the tfug
mailing list