Archiving a log file

Terje Elde terje at
Sun Aug 4 13:38:36 UTC 2013

On 4. aug. 2013, at 12:54, Frank Leonhardt <frank2 at> wrote:
> The program writing the log is actually called flubnutz and it doesn't play nice with newsyslog, reopen handles on a signal or anything else

Then you're out of luck for normal rotation. No matter if you rename the file, or even delete it, it'll keep writing to the same file (the moved file, not the same filename). 

I suppose your options are to either restart it to have it reopen the file, or if that's not desirable for whatever reason, look see if it'll play nice if you put a named pipe where the logfile is supposed to be. Then you can handle data as you'd like from the pipe. 


More information about the freebsd-questions mailing list