Thread View: news.software.nntp
4 messages
4 total messages
Started by David Canzi
Thu, 29 Aug 2002 21:55
testing a new control.ctl (inn-2.3.2, redhat Linux)
Author: David Canzi
Date: Thu, 29 Aug 2002 21:55
Date: Thu, 29 Aug 2002 21:55
32 lines
2417 bytes
2417 bytes
I caused a disaster when I installed a new expire.ctl. My best guess was that, by some perversity in the code, "control.*" in expire.ctl matches *ALL* newsgroups. (That line was at the end of the file, and the last line matched decides when an article expires.) After enough time had passed to recover my courage, I decided to remove the suspect line and try again, but *test* the new control.ctl first before installing it. According to the expire man page, the -t flag has the following effects: - instead of removing articles, expire writes their names to stdout - expire leaves the new history in history.n instead of renaming it The man page says the -z flag has this effect: - instead of removing articles, expire writes their storage tokens to a file When I ran expire with a test version of expire.ctl and the -t flag, it wrote nothing to stdout. When I added -z, expire wrote nothing to the output file. Later, I made a copy of history, then ran expire with both -t and -z, then extracted a list of all storage tokens in the copied history file that weren't in the history.n file. I could not access any article with any of those storage tokens. As far as I can tell, expire with -t removes the articles it expires. There doesn't appear to be any safe way to test a new expire.ctl before installing it. This might conceivably be fixed in a later version. -- David Canzi If love of money is the root of all evil, marketing must be the trunk and most of the branches.
Re: testing a new control.ctl (inn-2.3.2, redhat Linux)
Author: Russ Allbery
Date: Fri, 30 Aug 2002 03:03
Date: Fri, 30 Aug 2002 03:03
35 lines
2618 bytes
2618 bytes
David Canzi <dmcanzi@watserv1.uwaterloo.ca> writes:
> I caused a disaster when I installed a new expire.ctl. My best guess
> was that, by some perversity in the code, "control.*" in expire.ctl
> matches *ALL* newsgroups. (That line was at the end of the file, and
> the last line matched decides when an article expires.) After enough
> time had passed to recover my courage, I decided to remove the suspect
> line and try again, but *test* the new control.ctl first before
> installing it.
> According to the expire man page, the -t flag has the following effects:
> - instead of removing articles, expire writes their names to stdout
> - expire leaves the new history in history.n instead of renaming it
> The man page says the -z flag has this effect:
> - instead of removing articles, expire writes their storage tokens
> to a file
> When I ran expire with a test version of expire.ctl and the -t flag, it
> wrote nothing to stdout. When I added -z, expire wrote nothing to the
> output file.
Are you using expire or expireover? (And do you have groupbaseexiry set
in inn.conf?) Normally in INN 2.3.x expire doesn't do the work of reading
the expire.ctl file; it only cleans up the history file. The real work is
done by expireover.
If you're using class-based expiration, it does look like expire -t should
do what you expected it to do....
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: testing a new control.ctl (inn-2.3.2, redhat Linux)
Author: David Canzi
Date: Fri, 30 Aug 2002 07:11
Date: Fri, 30 Aug 2002 07:11
30 lines
2321 bytes
2321 bytes
In article <yladn5qc9k.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >David Canzi <dmcanzi@watserv1.uwaterloo.ca> writes: > >> When I ran expire with a test version of expire.ctl and the -t flag, it >> wrote nothing to stdout. When I added -z, expire wrote nothing to the >> output file. > >Are you using expire or expireover? (And do you have groupbaseexiry set >in inn.conf?) Normally in INN 2.3.x expire doesn't do the work of reading >the expire.ctl file; it only cleans up the history file. The real work is >done by expireover. I'm running expire, groupbaseexpiry is true (class based expiry is a future goal), and when I specify the test version of expire.ctl on the command line the file access time is updated -- not sure whether this means the file was read, or just opened for reading. Based on what you're saying, the storage tokens that get removed from history may only be the storage tokens of cancelled articles. This would explain my results. I think I'll have to take a look at expireover, use the old expire.ctl to test expire and expireover, then use expire and expireover to test the new control.ctl. If any problems crop up, I'll post again. -- David Canzi If love of money is the root of all evil, marketing must be the trunk and most of the branches.
Re: testing a new control.ctl (inn-2.3.2, redhat Linux)
Author: rmtodd
Date: Fri, 30 Aug 2002 18:46
Date: Fri, 30 Aug 2002 18:46
9 lines
1621 bytes
1621 bytes
dmcanzi@watserv1.uwaterloo.ca (David Canzi) writes: > I'm running expire, groupbaseexpiry is true (class based expiry is a > future goal), and when I specify the test version of expire.ctl on the > command line the file access time is updated -- not sure whether this > means the file was read, or just opened for reading. On every Unix system I've seen, updated atime means something actually got read from that file.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads