Article View: news.software.readers
Article #206785Re: [leafnode] Instant Upload
From: Peter J Ross
Date: Fri, 28 Sep 2007 22:04
Date: Fri, 28 Sep 2007 22:04
26 lines
2297 bytes
2297 bytes
In news.software.readers on Fri, 28 Sep 2007 20:32:55 +0200, Robert Spanjaard <spamtrap@arumes.com> wrote: > On Fri, 28 Sep 2007 09:46:17 +0000, Peter J Ross wrote: > >>> If it's possible, you should edit inetd.conf and replace the execution of >>> leafnode by a script which executes leafnode followed by fetchnews -P >>> (=post only). But I'm not sure if inetd allows the use of scripts. >>> >>> If it doesn't work, you could setup a new cron job which executes >>> fetchnews -P every 5 minutes, for example. >> >> Another possible solution would be a shell script that looks at >> /var/spool/news/out.going/ and runs fetchnews -P if the directory >> isn't empty and fetchnews isn't already running. Run the script with >> cron every minute or every 30 seconds. > > Fetchnews uses a lockfile to check if an instance is running already. So > there's no need to check it in a script (again). I think it's more efficient to check. But checking for the existence of a lockfile may be simpler than checking for the existence of a process. Thanks. -- PJR :-)
Technical Details
Message-ID:
<slrnffquij.3tf.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!nx01.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mailReferences:
<slrnffo7oj.jlt.no.spam@thurston.blinkynet.net> <pan.2007.09.27.22.25.15.39579@arumes.com> <slrnffpjb9.3tf.pjr@pjr.gotdns.org> <pan.2007.09.28.18.32.55.426259@arumes.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnffquij.3tf.pjr@pjr.gotdns.org> Subject: Re: [leafnode] Instant Upload Date: Fri, 28 Sep 2007 22:04:03 +0000 From: Peter J Ross <pjr@example.invalid> References: <slrnffo7oj.jlt.no.spam@thurston.blinkynet.net> <pan.2007.09.27.22.25.15.39579@arumes.com> <slrnffpjb9.3tf.pjr@pjr.gotdns.org> <pan.2007.09.28.18.32.55.426259@arumes.com> 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!nx01.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail Newsgroups: news.software.readers Organization: none Reply-To: Peter J Ross <pjr.spam@gmail.com> User-Agent: slrn/0.9.8.1pl2.1 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 NNTP-Posting-Date: 28 Sep 2007 17:04:03 CDT X-Trace: DXC=nAW^kFHW_5ij?:@6[=O<[k]AGWjF5PjPi465Ue@WB_5o; C@MUJIjXcn26Z<EbT:a\elV3mi\haFghS[:V7Zh:kboOWn26`ONK<i