[ale] Apache log files Sorry not what I was looking for

Zhongbin Yu " <z.yu at premcall.com> Zhongbin Yu " <z.yu at premcall.com>
Fri Oct 29 16:57:35 EDT 1999


you should not need to restart apache. there is a 'truncate' mode for
logrotated, which will leave the old inode, I guess. 

Also, 'rotatelogs' should help as well.

/home/zyu/mail$ man -k log|grep rotate 
logrotate (8)  - rotates,compresses, and mails system logs
rotatelogs (8) - rotate Apache logs without having to kill the server

good luck.

Jerry Yu
----------------------------------------------------------------------------
Systems Engineer	| zyu at tc.net
Premiere Technologies	| 404-262-8544(O)	1-800-979-1105 (P)
Atlanta, GA 30326	| ae.tc.net/dept/engineering/op/public/developer/zyu

#I should have included this in my original message, sorry for all the
#confusion, but logrotate, copy the files is becoming not an option. We
#are talking about multiple log files that are 5GB+
#it takes about 20 min to copy the log files, and chews up my CPU.
#
#I'm looking towards a much better solution, where it does not chew up
#CPU and the bandwidth of the raid controllers.
#
#>From what I gather, the best option would be:
#While apache is running
#move the log files(whith in the same partition)
#restart apache.
#But this is a very rough way of achieving what I need.
#
#Any ideas ?
#






More information about the Ale mailing list