log files rotation

Robin Melville robmel at innotts.co.uk
Wed Sep 25 08:50:47 BST 2002


On Tuesday, September 24, 2002, at 08:57 PM, Pete French wrote:

>> newsyslog(8) and /etc/newsyslog.conf is rotating the log files in
>> freebsd, may be you could use it to rotate the apache logs, i`m
>> using it actually..
>
> Caveat: It restrats your websever - this kills any processes which 
> might be
> running in it when the logs rotate. I found this out the hard way 
> (database
> corruption due to incomplete writes from a CGI script when the logs 
> rotated)

You might also consider switching to a database engine that does 
transactions since cgis can stop dead for other reasons.


Robin Melville
Addiction Information
Nottingham Alcohol & Drug Team





More information about the Ukfreebsd mailing list