single instance of multilog for multiple processes
Richard Lucassen <[email protected]> Mon, 21 Sep 2009 00:21:32 +0200
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Organization | XAQ Systems |
| Message-ID | <[email protected]> |
I'd like to have multiple independent processes log to 1 multilog. I think the following solution using a fifo is a good idea: $ cat run #!/bin/sh while true; do /usr/local/bin/setuidgid loguser /usr/local/bin/multilog t \ /var/log/multilog done < /usr/local/multilog/fifo Is this the right way to do this or are there some restrictions or disadvantages? Two processes writing simultaneously to the fifo will be processed sequentially AFAIK. R. -- ___________________________________________________________________ It is better to remain silent and be thought a fool, than to speak aloud and remove all doubt. +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+