Search squid archive

AW: rotate bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux