🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79706

Re: cnfsstat not writing to syslog

#79706
From: Julien ÉLIE
Date: Thu, 20 Nov 2008 15:03
39 lines
2804 bytes
Hi Bruce,

> But, seeing the entry for cnfsstat now, I'm wondering if it is the Solaris
> syslog to blame, here are two entries, one for innd, one for cnfsstat...

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6503341

Sys::Syslog is broken in Solaris 10
    While attempting to use the Sys::Syslog module that ships with the default
    Solaris perl distribution, I noticed that I couldn't log messages unless syslog
    was configured to listed on a UDP port.


Is it what is happening?



By the way, what is the value of $OSNAME ($^O) in Solaris?
Maybe
    Sys::Syslog::setlogsock('unix');
should be removed.

I see that note in <http://perldoc.perl.org/Sys/Syslog.html>:

    Now that the "native" mechanism is supported by Sys::Syslog and selected by default,
    the use of the setlogsock() function is discouraged because other mechanisms are
    less portable across operating systems. Authors of modules and programs that use
    this function, especially its cargo-cult form setlogsock("unix") , are advised
    to remove any occurence of it unless they specifically want to use a given mechanism
    (like TCP or UDP to connect to a remote host).


Solaris seems to prefer "stream".  But setlogsock may be removed.

-- 
Julien ÉLIE

« César, c'est un Jules tout de même ! » (Astérix) 
Technical Details
Message-ID: <gg3u92$9it$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com>

Show Full Headers
Complete Article Headers
Message-ID: <gg3u92$9it$1@news.trigofacile.com>
Subject: Re: cnfsstat not writing to syslog
Date: Thu, 20 Nov 2008 16:03:47 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 39
NNTP-Posting-Host: amontpellier-152-1-52-250.w83-197.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1227193442 9821 83.197.145.250 (20 Nov 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Thu, 20 Nov 2008 15:04:02 +0000 (UTC)
In-Reply-To: <gg2437$i21$1@e250.ripco.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049