[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to properly empty log files



On Fri, Oct 17, 2008 at 09:44:43AM +0100, Chris Davies wrote:
> Neither of those [truncating a log file] will work in this instance,
> as the file is held open for writing [...]

Tzafrir Cohen <tzafrir@cohens.org.il> wrote:
> Are you sure? The above method [truncation] works fine for me.

Presumably you don't have rsyslog holding open the files
like the original poster illustrated. FWIW I'm not alone; see
http://www.gossamer-threads.com/lists/rsyslog/users/1109

Cheers,
Chris


Reply to: