[H-GEN] Logging over serial ports

Martin Pool martinp at mincom.com
Sun Apr 11 19:38:40 EDT 1999


(Note reply-to: being general at humbug.org.au vs Martin Pool <martinp at mincom.com>)

Craig Eldershaw wrote:
> 
> (Note reply-to: being general at humbug.org.au vs Craig Eldershaw <ce at comlab.ox.ac.uk>)
> 
> OK, this seems to work:
> 
> mkfifo /var/log/squid/squid.log
> mkfifo /var/log/apache/apache.log
> ...etc...
> 
> logger -f /var/log/squid/squid.log &
> logger -f /var/log/apache/apache.log &
> ...etc...

Of course, squid and apache will hang if the logger process dies.  (Or
will it get a SIGPIPE?  I forget.)  I'm not sure if I'd rather have my
httpd stop if it can't log (fifos), or just throw away the output (udp).

I guess under NT I could have both. ;-)

-- 
 /\\\  Mincom | Martin Pool          | martin.pool at mincom.com
// \\\        | Software Engineer    | Phone: +61 7 3303-3333
\\ ///        | Mincom Pty. Ltd.     | 
 \///         | Teneriffe, Brisbane  | Speaking for myself only

--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list