On Tue, Dec 24, 2002 at 01:55:29PM +0100, Hauser Marcel wrote:

> :) hehe.. yep... for a 500MB logfile :)

Not that tough. I have my squid log files rotate on a weekly basis with
compression enabled. For my monthly reports, I just create a big log
file by zcatting the old logfiles and catting the current logfile into a
temporary logfile to be processed.

> 
> i thought abouth touching /var/lock/subsys/whatever while the reporting 
> tool is running.

Should work, but you would have to alter the logrotate script to use the
locking mechanism.

> 
> and to not execute logrotate if that file exists for that day!

I would rather have logrotate sleep until the lock goes away. That way
you jusr delay log rotation instead of making it go away completely.

> 
> is there no better solution?

Can you do partial data collection on a more frequent basis? Perhaps
weekly? That way your processing time should be drastically reduced.

Cheers,
-- 
Javier Gostling                        Av. Kennedy 5757, of. 1502
Ingeniero de Sistemas                  Las Condes, Santiago, Chile
Virtualia S.A.                         Fono: +56 (2) 202-6264 x 130
[EMAIL PROTECTED]                 Fax:  +56 (2) 342-8763

Attachment: msg100034/pgp00000.pgp
Description: PGP signature

Reply via email to