From owner-freebsd-isdn Wed May 19 11:36:52 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from alvman.RoBIN.de (alvman.robin.de [193.174.7.33]) by hub.freebsd.org (Postfix) with ESMTP id 8432B14E2B for ; Wed, 19 May 1999 11:36:31 -0700 (PDT) (envelope-from ah@alvman.RoBIN.de) Received: from localhost (ah@localhost) by alvman.RoBIN.de (8.9.3/8.8.8) with ESMTP id UAA32869; Wed, 19 May 1999 20:36:09 +0200 (CEST) (envelope-from ah@alvman.RoBIN.de) Date: Wed, 19 May 1999 20:36:09 +0200 (CEST) From: Andreas Haakh To: Marcel Moolenaar Cc: hm@hcs.de, isdn@FreeBSD.ORG Subject: Re: Rename on SIGUSR1 for isdnd In-Reply-To: <374288D1.8D3F25DD@scc.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org man newsyslog (on FreeBSD) You just add a line to /etc/newsyslog.conf: /var/log/isdnd.log 664 7 100 * Z and you are all done... On Wed, 19 May 1999, Marcel Moolenaar wrote: > > The shell script has to be modified in both cases when the filename changes, > so that's not particularly disadvanteous for one method. > > The reason for the patch is more "emotional" than technical. Firstly, I don't > like fiddling with things that are under the control of running programs. It > makes matters more complicated than strictly necessary. Secondly, I like > clear functionality. Closing and reopening files makes sense only when > accompanied by some external (from the isdnd point of view) action. The > feature of closing and reopening files is *on itself* not meaningful. It is > also implementation specific. By adding a simple rename, the clear > functionality is there without any external event and is meaningful in any > implementation. > > The advantage of doing the rename by isdnd is that the shell script only has > to consider one file (namely isdn.acct.last) and that the script can do with > it as it pleases. When the rename is done by the shell script, it has to > consider 2 files (namely isdn.acct and the one to which it is renamed), of > which one can change at any time. There is clearly a differency in complexity > and the increase of complexity in isdnd is far less than the decrease of > complexity in the shell script... > > marcel > Andreas -- Andreas Haakh * Mollerstraße 7 * 64289 Darmstadt * ah@alvman.RoBIN.de http://www.RoBIN.de für privaten Internet-Zugang in Darmstadt/Rödermark http://www.FreeBSD.org freies Berkley-Unix für Intel-Architektur(>=80386). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message