Re: Tricks for more levels than s + s/log with svscan.

[email protected] (Paul Jarc)
Newsgroups gmane.comp.djb.syslog
Organization What did you have in mind? A short, blunt, human pyramid?
Message-ID <[email protected]>
Rob Mayoff <[email protected]> wrote:
> You can set up the log service to run your program, sending its output
> to a named pipe.  Then set up a completely separate service that runs
> multilog reading from that named pipe.

There is some risk of losing data that way - if the reader and writer
both die, then they will be talking over a new pipe when they are
restarted, and any unread data that was in the old pipe will be
discarded.  You can avoid that problem with piped (assuming piped is
less likely to die that the programs it runs):
http://www.star.le.ac.uk/~tjg/syslogtools/piped.html


paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.