[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 19991129: local0 facility
- Subject: Re: 19991129: local0 facility
- Date: Tue, 30 Nov 1999 12:32:46 -0700 (MST)
On Mon, 29 Nov 1999, Unidata Support wrote:
> >To: address@hidden
> >From: Phil Mieczynski <address@hidden>
> >Subject: local0 facility
> >Organization: .
> >Keywords: 199911292356.QAA21707
>
>
> Hi Robb,
>
> I've been loading the HP-UX 10.20 binary distribution of LDM on several of our
> platforms. I just ran into a problem when trying to load the binary on a HP-UX
> 10.20 box that is running an application that is already using the local0
> facility to log messages to a non-ldm file.
>
> The LDM Installation instructions say to add the following entry to
> /etc/syslog.conf
> local0.debug /usr/local/ldm/logs/ldmd.log
>
> The problem is that the /etc/syslog.conf file on the box in question already
> has
> local0.debug /data/logs/dnlog
>
> I've spoken to the developer's of the dn app and they tell me that
> local0.debug
> is hard coded into the application and would require a recompilation of the
> source to make a change. In other words, cows will fly before changes are made
> to this particular source code.
>
> My question is, can the local0 facility be changed on the binary distribution
> of
> LDM that I currently have? If not, what options do I have?
>
Phil,
The local0 cannot be changed in the LDM binary release, it's hard coded as
well. There are 2 options,
- use :
local0.debug /usr/local/ldm/logs/ldmd.log in syslog.conf and expect the
log messages from the dn app to also be in the log file. This usually
isn't a problem if the dn app doesn't have many messages.
- Build the LDM from source, in src/ulog.h
change:
ulog.h:#define LOG_LDM LOG_LOCAL0
to
ulog.h:#define LOG_LDM LOG_LOCAL1
Then change the syslog.conf to local1 for the LDM
Robb...
> Thanks...Phil
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================