Article View: news.software.readers
Article #215883Re: [Leafnode] & [slrn] page: Comments?
From: Peter J Ross
Date: Sun, 27 Jan 2008 12:08
Date: Sun, 27 Jan 2008 12:08
101 lines
5007 bytes
5007 bytes
In news.software.readers on Sat, 26 Jan 2008 11:05:06 +1100, andrew <andrew@ilium.invalid> wrote: > On 2008-01-25, Peter J Ross <pjr@example.invalid> wrote: >> In news.software.readers on Fri, 25 Jan 2008 14:46:31 +1100, andrew >><andrew@ilium.invalid> wrote: >>> I am aware of the arrogance of writing up software that I have used >>> for less than a week but I have published an Ubuntu 'Howto' for >>> installing Leafnode-2 to work with slrn: >>> >>> http://ubuntuforums.org/showthread.php?t=676837 > > Thanks again PJR for your careful analysis which I have saved offline > to work through. I have a sense of déjà vu here, it was not so long > ago that you were giving me some comments on my first slrn page :-) I think you've now exhausted the list of software I know enough about to make informed comments. >> A few thoughts: <...> >> 3. Why use verbose options when running fetchnews and texpire from >> cron? > > Simply to supply more information in the logs. Runnng without verbose > simply tells you 'it ran'. > >> 4. Why are your logs globally writable? And why not configure logging >> with /etc/syslog.conf (and /etc/logrotate.conf)? > > This definitely needs addressing. I almost feel that I should direct > the output to /dev/null rather than generating yet another log but > this needs a little thought. Permissions are wrong though and I will > correct this. 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 #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. 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. >> 5. An hour is a long time to wait between fetchnews runs. I suggest at >> least running fetchnews with the -P option more often. > > Hmmmm.... not sure about this. I think I will make a small note about > tailoring checking time with posting / reading habits. Is the -P > option a default? "-P" does nothing but post any articles that are in the queue. Posting articles promptly is a good idea; otherwise not only does the OP have to wait longer for an answer but your answer may be duplicated by somebody else who hasn't seen it yet. Something like this should work in crontab: #v+ 15 * * * * /usr/local/sbin/fetchnews 0,5,10,20,25,30,35,40,45,50,55 * * * * /usr/local/sbin/fetchnews -P #v- Better still would be a script to monitor the queue for articles and run fetchnews -P if any are found, but I haven't found or devised one so far. Of course, the more often you run fetchnews the more difficult it becomes to be sure that texpire will run. A wrapper script like this should help: #v+ #!/bin/bash LOCKFILE=/var/spool/news/leaf.node/lock.file while [ -f $LOCKFILE ]; do sleep 10 done /usr/local/sbin/texpire #v- Make the script executable by "news" and run it from news's crontab instead of texpire. (A more robust script would give up after a while and generate an error message, but I already get a notification from fetchnews if the lockfile persists too long, so I'm not bothered.) -- PJR :-)
Technical Details
Message-ID:
<slrnfpot2o.j93.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!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!news.svengo.de!news.motzarella.org!motzarella.org!not-for-mailReferences:
<20080125143939@ilium.andrews-corner.org> <slrnfpjggm.pps.pjr@pjr.gotdns.org> <20080126103601@ilium.andrews-corner.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnfpot2o.j93.pjr@pjr.gotdns.org> Subject: Re: [Leafnode] & [slrn] page: Comments? Date: Sun, 27 Jan 2008 12:08:56 +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> 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!newsfeed01.sul.t-online.de!t-online.de!feeder.visyn.net!news.svengo.de!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 101 Reply-To: Peter J Ross <pjr.spam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: feeder.motzarella.org U2FsdGVkX1/gAg5Ei0ltiCtThkxv37f0sPP+fQCi/VEZdWaxTlTzrDJtJLA5TdIcVePPQLmqlgQwXsZBXrkQ5lmQZ4fFdGLzG9Srp6Lara89vzlq8QrOq6kmEFKHMLfaS2fw4VkG+Rc= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Sun, 27 Jan 2008 12:10:04 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+KxGXB3tWqeik8oJt0JkvP Cancel-Lock: sha1:7HZqkXuYzrbUCXW4qKObMxqAvpA= User-Agent: slrn/pre0.9.9-82 (Linux)