🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #70554

controlchan logging on OpenBSD

#70554
From: Maurice Janssen
Date: Sun, 02 Jan 2005 09:30
37 lines
2384 bytes
Hi,

A few weeks ago, I posted a message (Msg-ID: <cnkbvn$k11$1@linux.z74.net>)
about processing of control messages on my feeder.  After upgrading to
INN-2.4.2 last night (which seems to be running fine), I noticed that
the problem persisted.

However, it appears that control messages are being processed, but
there's nothing in the news.notice logfile.  (BTW: this was also the
case for INN-2.4.1, but I noticed this some time after my initial
posting).

After reading ~/bin/controlchan I made the following tiny patch:

$ diff -u controlchan.orig  controlchan 
--- controlchan.orig    Sun Jan  2 10:09:17 2005
+++ controlchan Sun Jan  2 10:14:58 2005
@@ -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|freebsd|darwin/;
+    Sys::Syslog::setlogsock('unix') if $^O =~ /linux|dec_osf|freebsd|openbsd|darwin/;
     openlog('controlchan', 'pid', $inn::syslog_facility);
 }
 logmsg('starting');


After restarting INN, the 'starting' line showed up in news.notice, so I
assume that all other messages will also end up there:
Jan  2 10:15:01 gemini controlchan[1981]: starting 

Is there a specific reason that openbsd was left out?  Maybe other
systems (netbsd?) can be added as well.

-- 
Maurice
Technical Details
Message-ID: <cr8f0c$795$1@linux.z74.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!news.zanker.org!feeder.z74.net!reader.z74.net!news.z74.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <cr8f0c$795$1@linux.z74.net>
Subject: controlchan logging on OpenBSD
Date: Sun, 02 Jan 2005 09:30:52 +0000
From: Maurice Janssen <mauricej@xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!news.zanker.org!feeder.z74.net!reader.z74.net!news.z74.net!not-for-mail
Newsgroups: news.software.nntp
Organization: z74
Lines: 37
NNTP-Posting-Host: localhost.localdomain
X-Trace: linux.z74.net 1104658252 7461 ::1 (2 Jan 2005 09:30:52 GMT)
X-Complaints-To: news@z74.net
NNTP-Posting-Date: Sun, 2 Jan 2005 09:30:52 +0000 (UTC)
X-GPG-KeyID: 1024D/B76C96D0
X-GPG-Fingerprint: AE3C 392A AC95 74EB 61A4 4764 DE3E 6BAD B76C 96D0
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.4.27 (i686))