Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 1999 10:33:00 +0200 (MET DST)
From:      Christian Wolf <Christian.Wolf@medis.de>
To:        Hellmuth Michaelis <hm@hcs.de>
Cc:        Marcel Moolenaar <marcel@scc.nl>, isdn@FreeBSD.ORG
Subject:   Re: Rename on SIGUSR1 for isdnd
Message-ID:  <Pine.GSO.3.96.990519101254.24644A-100000@sun-chris.medis.de>
In-Reply-To: <m10k0sp-0000fgC@hcswork.hcs.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 May 1999, Hellmuth Michaelis wrote:

> >From the keyboard of Marcel Moolenaar:
> 
> > [patch for isdnd to rename the acctfile and logfile on SIGUSR1]
> 
> 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.
>
> The advantage i see with that approach is, that the new name of the logfiles
> is freely choosable whereas the patch has hardcoded names which are not 
> available to a shell script (if the name in isdnd changes, the script has
> to be modified).
> 
> On the other side, the advantage of the patch is that the rename is under
> control of isdnd which makes it (more) atomic.

If isdnd turns the acctfile and logfile on SIGUSR1, the script/program
has always the option to turn them before sending the SIGUSR1. In this
case the rename() of isdnd will fail (which should not be error), but
the new names of the files are under control of the script/program.

So, with the patch applied both ways are possible.

Regards,
	Chris

-- 
Christian Wolf; <Christian.Wolf@MedIS.DE>; Tel.: +49-40-76696-306  /\
MedIS - Medizinische Informations- und Steuerungssysteme GmbH     /\/\
Grossmoorbogen 25, 21079 Hamburg                                 /\/\/\
________________________________________________________________/\/\/\/\



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.GSO.3.96.990519101254.24644A-100000>