Nikolay Pavlov
2005-Jun-26 08:05 UTC
syslogd: Logging subprocess ... exited with status 126
Hi, all. I have an error when try to use pipes with syslog to log queries from bind. There is a very simple configuration: /etc/namedb/named.conf: ===================CUT======================logging { channel query_log { syslog local3; severity info; print-category yes; print-time yes; }; category queries { query_log; }; }; ===================CUT====================== # mkfifo /var/run/nmd.log /etc/syslog.conf: ===================CUT======================local3.info | /var/run/nmd.log ===================CUT====================== After that I just dig something: dig @localhost google.com And get this errors: syslogd: Logging subprocess s 1358 ( /var/run/nmd.log) exited with status 126. et cetera.... When i use file instead of pipe it's logging just fine. Best regards, Nikolay Pavlov.
On Sun, Jun 26, 2005 at 11:05:17AM +0300, Nikolay Pavlov wrote:> local3.info | /var/run/nmd.log> syslogd: Logging subprocess s 1358 ( /var/run/nmd.log) exited with status 126.If you say "| /var/run/nmd.log" it means "run the program /var/run/nmd.log and feed the log messages to stdin of that program". I'm guessing that /var/run/nmd.log is a logfile and not a program, thus you're getting an error because it is not executable. David.