Article View: news.software.nntp
Article #85764Re: pullnews (Debian Wheezy, inn2-lfs) broken?
From: Julien ÉLIE
Date: Sat, 06 Jul 2013 18:27
Date: Sat, 06 Jul 2013 18:27
59 lines
3751 bytes
3751 bytes
Hi Tony,
>> Another solution would be to add "-c /home/tony" to the pullnews you are
>> running. Did you test that? I do not understand why you would have an
>> error for the lock file if you use "-c /home/tony"; the lock file is
>> written in your home directory.
>
> It's not -c /home/tony though, it's -c /home/tony/.pullnews.
Yes, it is "-c /home/tony/.pullnews" (with the name of the config file).
> And if that has to be present, then the man page needs to be fixed.
Of course! At least for INN 2.5.3 (and perhaps INN 2.5.4 depending on
what we do for the next release).
> I don't understand why the tool is being changed so that essentially, only
> the news user can run it. It used to be a nice general purpose tool that
> would run with sane defaults for any user?
Another question is whether pullnews should be usable outside an INN
environment. The version of pullnews shipped with INN 2.5.3 expects the
usability of the Perl INN::Utils::Shlock package. So basically,
pullnews currently needs INN.
It could be possible to use the legacy shlock() function if
INN::Utils::Shlock is not found, which would therefore allow to use
pullnews as a standalone script (like suck).
I do not know whether people expect that for pullnews and use it outside
INN (though it is only shipped with INN!).
Anyway, all the users can use it, not only the news user.
The following documentation is extracted from the version in development
(2.6.0 yet not released):
http://www.eyrie.org/~eagle/software/inn/docs/pullnews.html
-c config
Normally, the config file is stored in pullnews.marks in pathdb. If -c
is given, config will be used as the config file instead. This is useful
if you're running pullnews as a system user on an automated basis out of
cron or as an individual user, rather than the news user.
A possibility would be to check whether the running user is the one
mentioned in the runasuser parameter in inn.conf. If that is the case,
we use <pathdb>. Otherwise, $ENV{HOME} would be used.
Would it be an acceptable behaviour?
--
Julien ÉLIE
« Et vous allez reprendre votre bateau… Et, mergitur ou pas,
fluctuat ! Compris ! Fluctuat ! » (Goudurix)
Technical Details
Message-ID:
<kr9nil$9r1$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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr!not-for-mailReferences:
<kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk> <kr9gtn$2k7$1@news.trigofacile.com> <kr9ldj$ts1$1@matrix.darkstorm.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <kr9nil$9r1$1@news.trigofacile.com> Subject: Re: pullnews (Debian Wheezy, inn2-lfs) broken? Date: Sat, 06 Jul 2013 20:27:33 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <kr6ff5$dga$2@trinity.darkstorm.co.uk> <kr7cuv$oo0$1@news.trigofacile.com> <kr7fsc$a2g$1@matrix.darkstorm.co.uk> <kr9gtn$2k7$1@news.trigofacile.com> <kr9ldj$ts1$1@matrix.darkstorm.co.uk> 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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 6 Jul 2013 18:27:33 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-652-1-190-49.w86-218.abo.wanadoo.fr:86.218.77.49"; logging-data="10081"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; In-Reply-To: <kr9ldj$ts1$1@matrix.darkstorm.co.uk> Lines: 58 X-Original-Bytes: 3517