RE: [squid-users] rotate bug?

From: Gregori Parker <gregori@dont-contact.us>
Date: Mon, 27 Mar 2006 09:23:41 -0800

Lol, I'm not the one with the problem -- I was just telling the guy who asked how I did it. If you go into squid.conf and set log_rotate to 0 like I did, then what you just said doesn't apply (sorry - I forgot that detail). My log rotation is working perfectly :)

 

-----Original Message-----
From: Werner.Rost@zf.com [mailto:Werner.Rost@zf.com]
Sent: Sunday, March 26, 2006 10:28 PM
To: Gregori Parker; squid-users@squid-cache.org
Subject: AW: [squid-users] rotate bug?

>>I just use a shell script to rotate logs:
>>
>>#!/bin/bash
>># Shell script for rotating squid logfiles
>>timestamp=$(date +%y%m%d%H)
>>filename="ex$timestamp.log"
>>mv /usr/local/squid/var/logs/access.log /var/squidlogs/$filename

     Oups, you steel access.log

>>/usr/local/squid/sbin/squid -k rotate

     Squid wants to rename access.log to access.log.0
     but you have stolen it before!

Please try:

/usr/local/squid/sbin/squid -k rotate
mv /usr/local/squid/var/logs/access.log.0 /var/squidlogs/$filename
                                       ===

Werner Rost
Received on Mon Mar 27 2006 - 10:23:41 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:04 MST