Re: Why is squid -k rotate not rotating my logs?

From: Wojciech Puchar <wojtek@dont-contact.us>
Date: Thu, 27 Apr 2000 11:11:23 +0200 (CEST)

> As per the FAQ, I added this to my crontab, and it actually doesnt
> work....
>
> 0 0 * * * /usr/local/squid/bin/squid -k rotate
>
> the command squid -k rotate launched from the shell prompt doesnt seem
> to do anything...!!
set rotation options in squid.conf
but even without in only doesnt seem to do anything but it does.
it closes logfiles and reopen.

if you like to rotate by yourself do

#!/bin/sh
move_current_logfiles_to_another_place_or_name
/usr/local/squid/bin/squid -k rotate
#give squid a chance to do it
sleep 30
do_some_logfile_compression_or_anything_you_like

and put this script in crontab
Received on Thu Apr 27 2000 - 03:15:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:04 MST