daemons logging to a file
Bernhard Graf <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
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]>