LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Closed Thread
  Search this Thread
Old 10-17-2005, 04:45 PM   #1
fluxrad
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 local1.info going to a named pipe. i.e.:

$mkfifo /usr/local/foo

/etc/syslog.conf contains:

local1.info |/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?

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

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

You say you've put in:

local1.info |/usr/local/foo

Which I read as:

loca1.info 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:

local1.info >/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, 02:16 PM   #3
fluxrad
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, 03:41 PM   #4
bugmenot
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, 05:52 PM   #5
jcorrea920
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 05:53 PM. Reason: typo
 
Old 02-10-2009, 05:31 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
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 01:10 PM
why is named burning syslog? eantoranz Linux - Networking 5 07-29-2005 11:47 AM
Syslog & Named Fails At Boot? ACR Fedora 1 03-31-2005 01:18 PM
connecting two vm machine via named pipe ? cyu021 Linux - Software 2 03-21-2005 07:01 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 AM.

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