Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2013 15:38:31 +0200
From:      Terje Elde <terje@elde.net>
To:        Frank Leonhardt <frank2@fjl.co.uk>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Archiving a log file
Message-ID:  <5DF8D376-34BF-4748-8371-C616E7FEC2A1@elde.net>
In-Reply-To: <51FE32D3.3000707@fjl.co.uk>
References:  <51FD8E19.90403@fjl.co.uk> <37485629-94BD-48EF-B7A7-9ED4C5B9A6E5@olivent.com> <51FE32D3.3000707@fjl.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4. aug. 2013, at 12:54, Frank Leonhardt <frank2@fjl.co.uk> wrote:
> The program writing the log is actually called flubnutz and it doesn't pla=
y 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 fil=
e, or even delete it, it'll keep writing to the same file (the moved file, n=
ot the same filename).=20

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

Terje




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5DF8D376-34BF-4748-8371-C616E7FEC2A1>