From owner-freebsd-stable Tue Feb 20 22:36: 2 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ego.mind.net (ego.mind.net [206.99.66.9]) by hub.freebsd.org (Postfix) with ESMTP id 0278937B4EC for ; Tue, 20 Feb 2001 22:35:54 -0800 (PST) (envelope-from takhus@takhus.mind.net) Received: from takhus.dyn.mind.net (AFN-Dyn-20846219139.pc.ashlandfiber.net [208.46.219.139]) by ego.mind.net (8.9.3/8.9.3) with ESMTP id WAA27236; Tue, 20 Feb 2001 22:35:53 -0800 Received: from localhost (fleisher@localhost) by takhus.dyn.mind.net (8.11.2/8.11.2) with ESMTP id f1L6ZMk74837; Tue, 20 Feb 2001 22:35:22 -0800 (PST) (envelope-from takhus@takhus.mind.net) X-Authentication-Warning: takhus.dyn.mind.net: fleisher owned process doing -bs Date: Tue, 20 Feb 2001 22:35:22 -0800 (PST) From: Tony Fleisher X-Sender: fleisher@takhus.dyn.mind.net To: lists Cc: freebsd-stable@FreeBSD.ORG Subject: Re: syslog changes in 4.2-stable? In-Reply-To: <20010220222603.A36904@mighty.grot.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 20 Feb 2001, lists wrote: > I have some odd syslog behaviour wrt the perl Sys::Syslog module. Since I can > only reproduce the problem on 4.2-STABLE boxes, I think this is the right > place to bring it up. > > I have an exceedingly simple perl script that simulates the behaviour of the > command: > > logger -p 'user.crit' "this is another test" > > on all machines I have tested the perl script, the above command has been > verified to work from the local command line, so I know that syslog.conf and > the syslogd options are "sane". > > ---------------------------------------- > #!/usr/bin/perl -w > use strict; > local $| = 1; > > use Sys::Syslog; > openlog('test', 'cons,pid', 'user'); > syslog('crit', "this is another test"); > closelog(); > ---------------------------------------- > > the above perl snippet works under: > > SunOS 5.7 > This is perl, version 5.004_04 built for sun4-solaris > > FreeBSD 3.3-RELEASE > This is perl, version 5.005_03 built for i386-freebsd > > but does NOT work under any of 4 machines all running: > > FreeBSD 4.2-STABLE > This is perl, version 5.005_03 built for i386-freebsd > > all CVSup'd this past week. > I happened to run into this exact problem sometime last week and found that it was fixed by adding: setlogsock('unix'); > > I also thought that setting > > Sys::Syslog::setlogsock('inet'); > > explictly might help. It didn't. > From the perldoc page: "The default is for the INET socket to be used." Hope this helps, TOny. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message