Re: [squid-users] Squid logrotate - Howto??

From: unixware <datareactor@dont-contact.us>
Date: Mon, 17 Nov 2003 13:17:51 -0800 (PST)

Dear Thomas

let see you want run log rotation script at 3:15 AM

use crontab

any entry by using crontab -e

15 3 * * * /usr/local/squid/sbin/squid -k rotate

that will do the trick

Regards

UW

--- Thomas.Bauer@hansgrohe.com wrote:
> Hey folkes,
>
> I have a question again. I want to set up a
> logrotation for squid on Redhat 9.
> I created a file /etc/logrotate.d/squid with the
> following content:
>
> /usr/local/squid/var/logs/access.log {
> daily
> rotate 14
> copytruncate
> compress
> notifempty
> missingok
> }
> /usr/local/squid/var/logs/cache.log {
> daily
> rotate 14
> copytruncate
> compress
> notifempty
> missingok
> }
>
> /usr/local/squid/var/logs/store.log {
> daily
> rotate 14
> copytruncate
> compress
> notifempty
> missingok
> postrotate
> /usr/local/squid/sbin/squid -k rotate
> endscript
> }
>
> But the rotation didn't work. I would like the
> rotation to start daily at midnight.
> What did I make wrong? Or is there anything else to
> configure what I forgot?
> Thanks in advance!
>
> Regards,
> Tommy
>
> Hansgrohe, Inc.
> Information Service
> 1492 Bluegrass Lakes Parkway
> Alpharetta, GA 30004
> phone (+001) 678 - 762 - 6994
>
>

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Received on Mon Nov 17 2003 - 14:18:02 MST

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