Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2002 23:53:10 +0100
From:      Hanspeter Roth <hampi@rootshell.be>
To:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: isdnd logfile discontinued after newsyslog
Message-ID:  <20021229235310.C6309@gicco.homeip.net>
In-Reply-To: <20021229201555.R4807@shell.gsinet.sittig.org>; from Gerhard.Sittig@gmx.net on Sun, Dec 29, 2002 at 08:15:56PM %2B0100
References:  <20021228235953.A1853@gicco.homeip.net> <20021229201555.R4807@shell.gsinet.sittig.org>

next in thread | previous in thread | raw e-mail | index | archive | help
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021229235310.C6309>