Re: [squid-users] continued log rotation problems ...

From: Brian E. Seppanen <seppy@dont-contact.us>
Date: Tue, 31 Dec 2002 11:19:16 -0500 (EST)

Perhaps I missed something, but why don't you have squid take care of it's
own logrotation?

with the logfile_rotate command. and then have cron issue a
0 * * * * /usr/sbin/squid -k rotate > /dev/null 2>&1 > /dev/null

every hour.

That works pretty well. You can even run it more frequently should you
wish.

On Tue, 31 Dec 2002, Kenn Murrah wrote:

> i'm still having problems with log rotation ...
>
> overnight, my access.log was changed from access.log to access.log.1 and
> squid continues to write to that file rather than to a new access.log
>
> my /etc/logrotate.conf reads as follows:
> /var/log/squid/access.log {
> rotate 9
> daily
> mail kenn@thebytebusiness.com
> postrotate
> /sbin/killall -HUP syslogd
> endscript
> }
>
>
> does anyone have any ideas what i'm doing wrong?
>
> thanks in advance.
>
>

Brian Seppanen
seppy@chartermi.net
906-228-4226 ext 23
Received on Tue Dec 31 2002 - 09:19:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:16 MST