Re: logging to a pipe?

This is a discussion on Re: logging to a pipe? within the Bind Users forums, part of the DNS and Related Forums category; >>>>> "Marten" == Marten Lehmann <lehmann@cnm.de> writes: Marten> I changed &...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2004
Jim Reid
 
Posts: n/a
Default Re: logging to a pipe?

>>>>> "Marten" == Marten Lehmann <lehmann@cnm.de> writes:

Marten> I changed "file" to "stderr". But where does BIND output
Marten> it's STDERR?

To whereever file descriptor 2 says it should go. [Hint: lsof is your
friend.] Usually that's /dev/null, which is where daemon processes
almost always redirect their standard input (fd 0), output (fd 1) and
error output (fd 2). It looks like you haven't read the BIND
documentation. Here's what the ARM has to say about the "stderr"
keyword:

The stderr destination clause directs the channel to the
server's standard error stream. This is intended for use when
the server is running as a foreground process, for example
when debugging a configuration.

Marten> I tried to run BIND with named | /vrmd/tmp/logger.pl, but
Marten> named immediately quits and runs in the background.

Well, what do you expect? FYI, named doesn't "immediately quit". named
is a daemon. That means by default it detaches itself from any
controlling tty and redirects its standard input, output and error
output to /dev/null before doing any real work. Just like any other
daemon: cron, lpd, inet, etc, etc. The man page for named tells you
how to run the process in the foreground and to force all of the logs
to stderr.

I suggest you read the documentation before you next post here.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0