From owner-freebsd-isdn Sun Dec 29 14:53:15 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F98537B401 for ; Sun, 29 Dec 2002 14:53:13 -0800 (PST) Received: from gicco.homeip.net (dclient80-218-73-147.hispeed.ch [80.218.73.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24DCA43EC2 for ; Sun, 29 Dec 2002 14:53:12 -0800 (PST) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.homeip.net (8.11.6/8.11.6) id gBTMrAX06798 for freebsd-isdn@FreeBSD.ORG; Sun, 29 Dec 2002 23:53:10 +0100 (CET) (envelope-from hampi@rootshell.be) Date: Sun, 29 Dec 2002 23:53:10 +0100 From: Hanspeter Roth To: freebsd-isdn@FreeBSD.ORG Subject: Re: isdnd logfile discontinued after newsyslog Message-ID: <20021229235310.C6309@gicco.homeip.net> Reply-To: freebsd-isdn@FreeBSD.ORG Mail-Followup-To: freebsd-isdn@FreeBSD.ORG References: <20021228235953.A1853@gicco.homeip.net> <20021229201555.R4807@shell.gsinet.sittig.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021229201555.R4807@shell.gsinet.sittig.org>; from Gerhard.Sittig@gmx.net on Sun, Dec 29, 2002 at 08:15:56PM +0100 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Dec 29 at 20:15, Gerhard Sittig spoke: > Then read 'man isdnd' and look at the "SIGNALS" and "FILES" > sections (the latter for how to get the pid, but then your above > example already has them -- I just write this should somebody > want to apply this technique to log other daemons' / services' > information by means of newsyslog). Yes, you are right. Isdnd requires USR1 (30) and newsyslog sends HUP by default. And maybe it's better to have the pidfile only in one of the entries. (It might be unpredictable if isdnd gets USR1 within a very short time.) Probably something like this should work: /var/log/isdnd.acct 644 33 1000 $D0 Z /var/log/isdnd.log 644 33 1000 $D0 Z /var/run/isdnd.pid 30 (I run isdnd with -l but no -L.) > This should get you over the problem. If the above newsyslog.conf > lines are yours you know whom to blame. :) Should these lines > have come with the distro (a quick check shows that neither > -STABLE nor -CURRENT have "isdn" entries in their > src/etc/newsyslog.conf files, but you still might have gotten Time to get acquainted with newsyslog. :-) It should also be possible to get the logging via syslog (without -l). But I had no quick luck screwing on syslog.conf. That's why I choose direct logging. > these from some manpage or online doc file) please feedback any > corrections to the project for the sake of your fellow FreeBSD > users. The same applies to web pages, too, of course. The mode, count, size and when parameters are personal taste. Also if somebody manages to log via syslog the logfiles might be different. -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message