Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 1999 09:35:19 +0200 (METDST)
From:      hm@hcs.de (Hellmuth Michaelis)
To:        marcel@scc.nl (Marcel Moolenaar)
Cc:        isdn@FreeBSD.ORG
Subject:   Re: Rename on SIGUSR1 for isdnd
Message-ID:  <m10k0sp-0000fgC@hcswork.hcs.de>
In-Reply-To: <3741EFAE.5C0BFD63@scc.nl> from Marcel Moolenaar at "May 19, 99 00:54:38 am"

next in thread | previous in thread | raw e-mail | index | archive | help
From the keyboard of Marcel Moolenaar:

> 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.

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.

Comments ?

hellmuth
-- 
Hellmuth Michaelis                                    Tel   +49 40 559747-70
HCS Hanseatischer Computerservice GmbH                Fax   +49 40 559747-77
Oldesloer Strasse 97-99                               Mail  hm [at] hcs.de
22457 Hamburg                                         WWW   http://www.hcs.de


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?m10k0sp-0000fgC>