syslog to localhost with controlchan
Russ Allbery
rra at stanford.edu
Thu Jan 1 18:32:25 UTC 2004
Katsuhiro Kondou <Katsuhiro_Kondou at isc.org> writes:
> Ah, this reminds me effective patch only for OS X, and
> this works fine.
I'll get this applied; it's a good workaround for now at least.
> Index: control/controlchan.in
> ===================================================================
> RCS file: /Users/kondou/news/inn/repository/inn/control/controlchan.in,v
> retrieving revision 1.7
> diff -u -r1.7 controlchan.in
> --- controlchan.in 2002/11/21 00:03:15 1.7
> +++ controlchan.in 2004/01/01 17:52:19
> @@ -50,7 +50,7 @@
> if ($use_syslog) {
> eval "sub Sys::Syslog::_PATH_LOG { '/dev/log' }" if $^O eq 'dec_osf';
> - Sys::Syslog::setlogsock('unix') if $^O =~ /linux|dec_osf/;
> + Sys::Syslog::setlogsock('unix') if $^O =~ /linux|dec_osf|darwin/;
> openlog('controlchan', 'pid', $inn::syslog_facility);
> }
> logmsg('starting');
> But, I wonder if any unix system whose syslog does not utilize unix
> domain socket. In another words, cannot any unix system use
> "Sys::Syslog::setlogsock('unix')"?
Solaris may not be able to; I'm not sure. I'll experiment. (Solaris uses
a stream device rather than a Unix domain socket.)
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list