From owner-freebsd-isdn Wed May 19 0:35:36 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from hcsext.hcs.de (hcsext.hcs.de [194.123.40.2]) by hub.freebsd.org (Postfix) with SMTP id 218FB14D80 for ; Wed, 19 May 1999 00:35:22 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1977 bytes) by hcsext.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Wed, 19 May 1999 09:35:20 +0200 (CEST) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m10k0sp-0000fgC; Wed, 19 May 99 09:35 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: Re: Rename on SIGUSR1 for isdnd In-Reply-To: <3741EFAE.5C0BFD63@scc.nl> from Marcel Moolenaar at "May 19, 99 00:54:38 am" To: marcel@scc.nl (Marcel Moolenaar) Date: Wed, 19 May 1999 09:35:19 +0200 (METDST) Cc: isdn@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1175 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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