🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #215984

Re: [Leafnode] & [slrn] page: Comments?

#215984
From: Peter J Ross
Date: Mon, 28 Jan 2008 09:46
64 lines
3902 bytes
In news.software.readers on Mon, 28 Jan 2008 09:12:49 +1100, andrew
<andrew@ilium.invalid> wrote:

> On 2008-01-27, Peter J Ross <pjr@example.invalid> wrote:
>
>> The problem is that you're not distinguishing error messages from ordinary
>> information, which makes the error messages more difficult to find.
>>
>> I have this in syslog.conf, as suggested by the Leafnode 2 docs:
>>
>> #v+
>> news.crit	/var/log/news/news.crit
>> news.err	/var/log/news/news.err
>> news.notice	-/var/log/news/news.notice
>> news.info	/var/log/news/news.info

Correction:
news.info	-/var/log/news/news.info

I thought something looked odd when I pasted it.

Adding the hyphen prevents logging to /var/log/messages.

>> #v-
>>
>> news.info contains all the details of each run of fetchnews and
>> texpire, while news.err is written to only when something goes wrong.
>
> Now I see what you mean! In my defence I am pulling 12 hout night
> shifts at the moment and my brain is a little fogged. I have set it up
> this way on my Slackware partition and it runs well. However my
> Leafnode 2 docs only speak of a 'news.info' log, this is the README file
> I am referring to, are you reading this in another location?

You're right. The other three lines are Debian defaults, but they're
useful if you don't have them.

>> Also, I think your way of redirecting output may prevent cron mailing
>> you about errors, but IIRC Ubuntu doesn't install a mail server by
>> default, so it probably makes no difference.
>
> Many of the cron jobs in slackware report to /dev/null, a note from PV
> above the defaults for root says:
>
> # If you don't want the output of a cron job mailed to you, you have to direct
> # any output to /dev/null.  We'll do this here since these jobs should run
> # properly on a newly installed system, but if they don't the average newbie
> # might get quite perplexed about getting strange mail every 5 minutes. :^)
>
> So if the news logging from syslog.conf runs independently of the cron
> job (ie it logs itself) I might alter the syntax for cron and send it
> to /dev/null, although I am not sure if this is a politically correct
> thing to do. Still a little experimenting to do.

If you don't want mail from cron, put
	MAILTO=""
at the top of the crontab file.

If you redirect mail to /dev/null, I suggest at least logging
news.err and news.crit.


-- 
PJR :-)
Technical Details
Message-ID: <slrnfpr943.nkl.pjr@pjr.gotdns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
References: <20080125143939@ilium.andrews-corner.org> <slrnfpjggm.pps.pjr@pjr.gotdns.org> <20080126103601@ilium.andrews-corner.org> <slrnfpot2o.j93.pjr@pjr.gotdns.org> <20080128084641@ilium.andrews-corner.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfpr943.nkl.pjr@pjr.gotdns.org>
Subject: Re: [Leafnode] & [slrn] page: Comments?
Date: Mon, 28 Jan 2008 09:46:43 +0000
From: Peter J Ross <pjr@example.invalid>
References: <20080125143939@ilium.andrews-corner.org> <slrnfpjggm.pps.pjr@pjr.gotdns.org> <20080126103601@ilium.andrews-corner.org> <slrnfpot2o.j93.pjr@pjr.gotdns.org> <20080128084641@ilium.andrews-corner.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 64
Reply-To: Peter J Ross <pjr.spam@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX18/MTRbQaupYXN5ihWyup4yWUDy14Z3Xw4WdzlPEwXZi11KzfXoUyYpvJABUp3yopZgmoEHKq/xfqTmk2LLkX0vc2K9tjmRRSOqIsxvKf6BeRKjz/bQn7Ltx0pFTdMmARI=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Mon, 28 Jan 2008 09:50:05 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX19q1zpT3hCXSUS96b7uIK21
Cancel-Lock: sha1:SjprZYiZjAXkVFikmzlPHMzUYxA=
User-Agent: slrn/pre0.9.9-82 (Linux)