Instead of a '/sbin/killall -HUP syslogd' do a '/usr/sbin/squid -k rotate'
Regards
Rabie
-----Original Message-----
From: Brian E. Seppanen [mailto:seppy@chartermi.net]
Sent: 31 December 2002 18:19
To: Kenn Murrah
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] continued log rotation problems ...
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
**********************************************************************
------
NOTICE
------
This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other use of, or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient, is prohibited.
If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and thereafter delete the
material from any computer.
Metropolitan Health Group, its subsidiaries or associates
do not accept liability for any personal views expressed in
this message.
**********************************************************************
Received on Thu Jan 02 2003 - 22:44:03 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:25 MST