From owner-freebsd-stable Sun Nov 12 15: 7:23 2000 Delivered-To: freebsd-stable@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 52E2837B479 for ; Sun, 12 Nov 2000 15:07:16 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eACN5DF02781; Sun, 12 Nov 2000 23:05:13 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eACN5jB05000; Sun, 12 Nov 2000 23:05:45 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200011122305.eACN5jB05000@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Tim Tsai Cc: Brian Somers , freebsd-stable@FreeBSD.org, brian@Awfulhak.org Subject: Re: periodic and 310.accounting In-Reply-To: Message from Tim Tsai of "Sun, 12 Nov 2000 16:17:02 CST." <20001112161701.A10495@futuresouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 12 Nov 2000 23:05:45 +0000 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Alternatively, you could send patches that add a new variable to > > control the number of log files kept :-) I'll happily commit them. > > Would you accept an alternative 310.accounting that uses newsyslog? > Seems like a standard utility to rotate all files would be nice. This > would require a newsyslog.conf type file though - where would I put it? I think it'd be nice if newsyslog could be told to ``just rotate this file with this number of backups with{,out} compression''. It can be given a file name, but still needs the config file to know when to rotate.... There are a few periodic scripts that could benefit from this sort of thing, but I don't think it's right to have lots of one-line newsyslog config files lying around or even to write them on the fly and then remove them after running pccardd.... I would have thought the best option is to either do the rotation in a loop or to add the functionality to newsyslog.conf.... > Tim -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message