Quoting GOMEZ Henri <[EMAIL PROTECTED]>: > Whaou. > > Didn't now about copytruncate option of logrotate.
It has some downsides too. But it's documented in the manual page, so everyone should know what to expect. > Under Linux there is truncate and ftruncate calls > but I wonder how it works regarding OS ? Not sure what you mean here exactly, but here is the text from the manual page that explains what happens: ------------ copytruncate Truncate the original log file in place after cre- ating a copy, instead of moving the old log file and optionally creating a new one, It can be used when some program can not be told to close its log file and thus might continue writing (appending) to the previous log file forever. Note that there is a very small time slice between copying the file and truncating it, so some logging data might be lost. When this option is used, the create option will have no effect, as the old log file stays in place. ------------ > I'll add this to all my tomcat rpm ASAP.... Cool. Bojan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>