Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 10-17-2005, 05:45 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
syslog not opening named pipe.

I appear to have a problem with syslog not opening a named pipe. I have several boxes all with the exact same configuration. Most of them work, however three systems do not. In syslog, I have going to a named pipe. i.e.:

$mkfifo /usr/local/foo

/etc/syslog.conf contains: |/usr/local/foo

I then have some code that's logging to syslog and some code that opens /usr/local/foo and reads from it. have verified that everything works as it should...except syslog.

I've check perms, the script that writes to syslog, tested other named pipes without syslog, and hupped syslogd more times than I can count all to no avail. I've also looked in /proc/<pid of syslog>/fd - /usr/local/foo never gets opened. Does anyone have any ideas what I might be missing?

Is there maybe some weird blocking issue I'm running into that I don't know about?

Old 10-18-2005, 01:01 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Haven't really played with syslog.conf but something you wrote looks incorrect to me:

You say you've put in: |/usr/local/foo

Which I read as: pipe into named pipe /usr/local/foo

Or in other words you're doing TWO pipes.

The "|" is for command line piping from one process to another.

Since you've created a named pipe (a/k/a a fifo) called "/usr/local/foo" you should be redirecting into it not doing another pipe.

That is I would think if there's any validity in this you would want to do: >/usr/local/foo

I can't confirm the above should work in syslog.conf but feel fairly confident that the | into foo wouldn't be correct due to the double pipe.
Old 10-18-2005, 03:16 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I had tried it several other ways, but the pipe (i.e. |/path/to/named/pipe) is actually the method that the syslog manpage specifies.

Incidentally, I have this same exact setup on two other systems and it works perfectly. Methinks this is a blocking problem but I can't get anywhere beyond that.
Old 01-23-2009, 04:41 PM   #4
LQ Newbie
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
same problem

had exact same problems.
changed permission on the directory where pipe resides in and everything worked fine.
Old 02-06-2009, 06:52 PM   #5
LQ Newbie
Registered: Jun 2006
Location: Oregon, USA
Distribution: Ubuntu / Fedora
Posts: 14

Rep: Reputation: 0
Question Permissions

What did you change permissions to? I have a fifo file housed in /var/log directory which has a default permissions set to 755. Own by root. What settings do you suggest?

Last edited by jcorrea920; 02-06-2009 at 06:53 PM. Reason: typo
Old 02-10-2009, 06:31 AM   #6
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
This is really an old thread that shouldn't really have been resurrected, so please start a new thread.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transphering files over a remote named pipe breik Linux - Networking 1 10-02-2005 02:10 PM
why is named burning syslog? eantoranz Linux - Networking 5 07-29-2005 12:47 PM
Syslog & Named Fails At Boot? ACR Fedora 1 03-31-2005 02:18 PM
connecting two vm machine via named pipe ? cyu021 Linux - Software 2 03-21-2005 08:01 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 06:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration