Date: Wed, 19 May 1999 20:36:09 +0200 (CEST) From: Andreas Haakh <ah@alvman.RoBIN.de> To: Marcel Moolenaar <marcel@scc.nl> Cc: hm@hcs.de, isdn@FreeBSD.ORG Subject: Re: Rename on SIGUSR1 for isdnd Message-ID: <Pine.BSF.4.05.9905192032420.32825-100000@alvman.RoBIN.de> In-Reply-To: <374288D1.8D3F25DD@scc.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905192032420.32825-100000>