Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 1999 12:43:25 +0200
From:      Achim Patzner <ap@bnc.net>
To:        Hellmuth Michaelis <hm@hcs.de>
Cc:        Marcel Moolenaar <marcel@scc.nl>, isdn@FreeBSD.ORG
Subject:   Re: Rename on SIGUSR1 for isdnd
Message-ID:  <19990519124325.G51180@bnc.net>
In-Reply-To: <m10k0sp-0000fgC@hcswork.hcs.de>; from Hellmuth Michaelis on Wed, May 19, 1999 at 09:35:19AM %2B0200
References:  <3741EFAE.5C0BFD63@scc.nl> <m10k0sp-0000fgC@hcswork.hcs.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 19, 1999 at 09:35:19AM +0200, Hellmuth Michaelis wrote:
> > Below is a small set of patches to change the behaviour of isdnd when
> > it's send a SIGUSR1 signal. Without the patches, isdnd simply closes and
> > reopens the acctfile and logfile (if applicable). With the patches,
> > isdnd closes the files and renames them, after which fresh files are
> > created.
> 
> The idea behind isdnd's current behaviour is to have a shell script which
> renames isdnd's log file and then send a SIGUSR1 signal to isdnd.

Which is the way it has been done for ages[tm].

> On the other side, the advantage of the patch is that the rename is under
> control of isdnd which makes it (more) atomic.

What would that be good for?

> Comments ?

Yes. Renaming is violating the principle of causing the least surprises.

Who'll come up with a similar patch to syslogd (and will try recommending it
on -current 8-))) )?


Achim


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?19990519124325.G51180>