Re: daemons logging to a file
Jeff Ross <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Friday, Oct 31, 2003, at 07:17 US/Mountain, Bernhard Graf wrote: > Hi, > > I want to run a program under svscan with logs piped to multilog. > Unfortunately this program can only log to either syslog or to a file. > > My first idea was a fifo, that is read by a program that prints to > stdout (cat) and let the program log to this fifo ... something like > > test -e "$fifo" && rm -f "$fifo" > mknod -m666 $fifo p > cat $fifo & > exec setuidgid $uid $program > > This looks a bit kludgy. Has anyone a better idea (besides patching the > program or using another one)? > -- > Bernhard Graf <[email protected]> > > > Why not replace syslog with Gerrit Pape's socklog program? socklog runs under daemontools, logs to multilog, and runs like a dream. I use it on all of my servers. http://smarden.org/socklog/ -- Jeff Ross Open Vistas Networking, Inc. http://www.openvistas.net