From owner-freebsd-questions@FreeBSD.ORG Sun Aug 4 13:38:36 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D63F5C34 for ; Sun, 4 Aug 2013 13:38:36 +0000 (UTC) (envelope-from terje@elde.net) Received: from keepquiet.net (keepquiet.net [IPv6:2a01:4f8:130:84c1::deaf:babe]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 957112928 for ; Sun, 4 Aug 2013 13:38:36 +0000 (UTC) Received: from [10.155.20.1] (2.150.50.128.tmi.telenormobil.no [2.150.50.128]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: terje@elde.net) by keepquiet.net (Postfix) with ESMTPSA id 671FF2E3FB; Sun, 4 Aug 2013 15:38:34 +0200 (CEST) References: <51FD8E19.90403@fjl.co.uk> <37485629-94BD-48EF-B7A7-9ED4C5B9A6E5@olivent.com> <51FE32D3.3000707@fjl.co.uk> In-Reply-To: <51FE32D3.3000707@fjl.co.uk> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <5DF8D376-34BF-4748-8371-C616E7FEC2A1@elde.net> X-Mailer: iPhone Mail (10B329) From: Terje Elde Subject: Re: Archiving a log file Date: Sun, 4 Aug 2013 15:38:31 +0200 To: Frank Leonhardt Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 13:38:36 -0000 On 4. aug. 2013, at 12:54, Frank Leonhardt 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