Date: Thu, 20 May 1999 14:36:55 +0200 (METDST) From: hm@hcs.de (Hellmuth Michaelis) To: marcel@scc.nl (Marcel Moolenaar) Cc: freebsd-isdn@freebsd.org (ISDN Mailinglist) Subject: Re: Rename on SIGUSR1 for isdnd Message-ID: <m10kS4F-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. After the discussion here, i made this patch's functionality configurable by using a new keyword in the system section: rotatesuffix Specifies a suffix for renaming the log- and the ac- countingfilename. In case rotatesuffix is used and a USR1 signal is sent to isdnd, the logfile and the accounting file is not only closed and reopened but the old logfile is also renamed to the former file- name with the rotatesuffix string appended. If this keyword is omitted, the logfiles are just closed and reopened; this is also the default behaviour. (op- tional) Hope, this is ok for both camps ;-) 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?m10kS4F-0000fgC>