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

Re: Is it possible to do this using logrotate?



Steve McWilliams <stevemc@Radix.Net> writes:

> I wonder if anyone has experience with the logrotate utility and can
> answer a question about it for me.  After reading the man page discussion
> about a copytruncate option, it sounded like it was somehow possible
> to copy off a log file and truncate it to length 0, and allow the
> logging process to continue unaffected.
> 
> After trying this however the behavior I'm seeing is that the log is
> copied off, and the logging process is able to continue writing to
> the same file descriptor, but the log is not correctly truncated.

How is it failing exactly?

> I realize this isn't strictly speaking a debian question, so I apologize
> in advance if this isn't the correct forum for this question.

Anyway, debian-mentor is for packaging-related questions, so it would
be more appropriate to debian-user. So please heed the reply-to.

-- 
Robbe

Attachment: signature.ng
Description: PGP signature


Reply to: