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





--- [EMAIL PROTECTED] 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

Reply via email to