[squid-users] Dub with access.log rotation ...

2008-04-04 Thread Ramiro Sabastta
Hi,

I installed squid on a Debian box.

Everithing is working well, but I have a issue that I can't solve.

The access.log log file always close an open new one at 6 A.M.

I try to change that with the squid -k rotate option, including in the
crontab file this line:

0 0 * * * /usr/sbin/squid -k rotate

but this configuration close the file at 00 AM and 6 AM too.

¿What can i do to force the rotation only to 0 AM? (but not to 6 AM)

Thanks a lot ...

Kind regards !!

Ramiro


Re: [squid-users] Dub with access.log rotation ...

2008-04-04 Thread Amos Jeffries

Ramiro Sabastta wrote:

Hi,

I installed squid on a Debian box.

Everithing is working well, but I have a issue that I can't solve.

The access.log log file always close an open new one at 6 A.M.

I try to change that with the squid -k rotate option, including in the
crontab file this line:

0 0 * * * /usr/sbin/squid -k rotate

but this configuration close the file at 00 AM and 6 AM too.

¿What can i do to force the rotation only to 0 AM? (but not to 6 AM)



It sounds a lot like you have the squid logs registered with logrotate 
(check for a /etc/logrotate.d/squid file)


This run around 6'ish every day. Otherwise it may be another crontab 
elsewhere doing it.


Amos
--
Please use Squid 2.6.STABLE19 or 3.0.STABLE4


Re: [squid-users] Dub with access.log rotation ...

2008-04-04 Thread julian julian
Squid, as other linux software use a daemon knows as
logrotate who is the responsable of many log
rotations.
You should modify the logrotate.conf or
./logrotate.d/squid specify logrotate config for
squid.

--- Ramiro Sabastta [EMAIL PROTECTED] wrote:

 Hi,
 
 I installed squid on a Debian box.
 
 Everithing is working well, but I have a issue that
 I can't solve.
 
 The access.log log file always close an open new one
 at 6 A.M.
 
 I try to change that with the squid -k rotate
 option, including in the
 crontab file this line:
 
 0 0 * * * /usr/sbin/squid -k rotate
 
 but this configuration close the file at 00 AM and 6
 AM too.
 
 ¿What can i do to force the rotation only to 0 AM?
 (but not to 6 AM)
 
 Thanks a lot ...
 
 Kind regards !!
 
 Ramiro
 



  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com