Thread View: news.software.nntp
6 messages
6 total messages
Started by Paul Tomblin
Sun, 27 Mar 2005 13:48
What are these directories, and why doesn't anything prune them?
Author: Paul Tomblin
Date: Sun, 27 Mar 2005 13:48
Date: Sun, 27 Mar 2005 13:48
15 lines
1887 bytes
1887 bytes
Running inn 2.3.5, wishing somebody would rpm-ize 2.4. I've got a /var/lib/news/backoff directory (which I presume has something to do with exponential backoff) but it has files in it dating back to 2002. Also, /var/log/news/trackposts, which has a copy of every article posted on my system, but which also never gets pruned. Is there some option to prune those automatically? Is there any problem with just, say, running a "find -ctime +30 -print0 | xargs -0 rm " on both of those directories? -- Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/ "To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Teddy Roosevelt
Re: What are these directories, and why doesn't anything prune them?
Author: Jeffrey M. Vinocur
Date: Sun, 27 Mar 2005 14:17
Date: Sun, 27 Mar 2005 14:17
32 lines
2203 bytes
2203 bytes
In article <d26diu$52o$1@allhats.xcski.com>, Paul Tomblin <ptomblin+netnews@xcski.com> wrote: > >I've got a /var/lib/news/backoff directory (which I presume has something >to do with exponential backoff) but it has files in it dating back to >2002. Also, /var/log/news/trackposts, which has a copy of every article >posted on my system, but which also never gets pruned. Clearly, you've set both "backupdb" and "readertrack" in inn.conf (details in inn.conf(5)). Did you intend to do so? >Is there some option to prune those automatically? The reader tracking is intended simply to write the files and leave them for your purposes, so no. The exponential backoff database could logically be self-pruned, but I'm not aware of any code to actually do so. >Is there any problem with just, say, running a "find -ctime +30 >-print0 | xargs -0 rm " on both of those directories? Shouldn't be for the readertrack stuff. I haven't ever used exponential backoff myself -- are the files one per IP address or something like that? If so, I'd imagine it's fine to delete them as well. -- Jeffrey M. Vinocur jeff@litech.org
Re: What are these directories, and why doesn't anything prune them?
Author: Paul Tomblin
Date: Sun, 27 Mar 2005 15:16
Date: Sun, 27 Mar 2005 15:16
37 lines
2886 bytes
2886 bytes
In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: >In article <d26diu$52o$1@allhats.xcski.com>, >Paul Tomblin <ptomblin+netnews@xcski.com> wrote: >>I've got a /var/lib/news/backoff directory (which I presume has something >>to do with exponential backoff) but it has files in it dating back to >>2002. Also, /var/log/news/trackposts, which has a copy of every article >>posted on my system, but which also never gets pruned. > >Clearly, you've set both "backupdb" and "readertrack" in inn.conf >(details in inn.conf(5)). Did you intend to do so? Actually, there is no "backupdb" setting at all in my inn.conf, nor is it mentioned in "man inn.conf". I did intend the readertrack, because I was trying to see which of the dozens of nnrpd logins I handed out are still in use. >>Is there any problem with just, say, running a "find -ctime +30 >>-print0 | xargs -0 rm " on both of those directories? > >Shouldn't be for the readertrack stuff. I haven't ever used >exponential backoff myself -- are the files one per IP address or >something like that? If so, I'd imagine it's fine to delete them >as well. Not obviously. The files are all something like /var/lib/news/backoff/088201/113/203 and seem to contain a time_t, then two small integers. Hey, wait a second - none of the files in /var/lib/news/backoff is newer than 90 days old. I guess whatever got configured to start creating them stopped. -- Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/ Is it so difficult to master your bloody pride and admit that yes, a bunch of hackers turned out a better suite of utilities than your teams of engineers ever could? -- Robert Uhl
Re: What are these directories, and why doesn't anything prune them?
Author: Hannah Schroeter
Date: Sun, 27 Mar 2005 15:46
Date: Sun, 27 Mar 2005 15:46
20 lines
1818 bytes
1818 bytes
Hello! Paul Tomblin <ptomblin+netnews@xcski.com> wrote: >[...] >Actually, there is no "backupdb" setting at all in my inn.conf, nor is it >mentioned in "man inn.conf". I did intend the readertrack, because I >was trying to see which of the dozens of nnrpd logins I handed out are >still in use. AFAIK you get a simple statistic of which account has been used how many times on that day in the daily news report even without readertrack. IIRC readertrack is needed only if you need more detailled stuff. >[...] Kind regards, Hannah.
Re: What are these directories, and why doesn't anything prune them?
Author: Jeffrey M. Vinocur
Date: Sun, 27 Mar 2005 18:13
Date: Sun, 27 Mar 2005 18:13
33 lines
2185 bytes
2185 bytes
In article <d26io8$713$1@allhats.xcski.com>, Paul Tomblin <ptomblin+netnews@xcski.com> wrote: >In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: > >>Clearly, you've set both "backupdb" and "readertrack" in inn.conf > >Actually, there is no "backupdb" setting at all in my inn.conf, nor is it >mentioned in "man inn.conf". Sorry, "backoffdb" -- I guess my fingers thought they knew better which preposition should be used there. >> >>are the files one per IP address or something like that? If >>so, I'd imagine it's fine to delete them as well. > >Not obviously. The files are all something like >/var/lib/news/backoff/088201/113/203 >and seem to contain a time_t, then two small integers. I looked through the code, and indeed, the filenames are $backoffdb/AAABBB/CCC/DDD representing an IP address of AAA.BBB.CCC.DDD. Or maybe it's DDD.CCC.BBB.AAA, or some other variation...I can't quite follow the mix of subscripting and ntohl(). But yeah, you can definitely delete those. -- Jeffrey M. Vinocur jeff@litech.org
Re: What are these directories, and why doesn't anything prune them?
Author: Paul Tomblin
Date: Sun, 27 Mar 2005 20:45
Date: Sun, 27 Mar 2005 20:45
26 lines
2412 bytes
2412 bytes
In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: >In article <d26io8$713$1@allhats.xcski.com>, >Paul Tomblin <ptomblin+netnews@xcski.com> wrote: >>In a previous article, jeff@litech.org (Jeffrey M. Vinocur) said: >>>Clearly, you've set both "backupdb" and "readertrack" in inn.conf >> >>Actually, there is no "backupdb" setting at all in my inn.conf, nor is it >>mentioned in "man inn.conf". > >Sorry, "backoffdb" -- I guess my fingers thought they knew better >which preposition should be used there. I know finger macros all too well. Where I work I deal with film, but I keep typing "file" when I want to type "film". In my inn.conf, backoffdb: is actually blank. And the man page says that there is no default. So there's something strange going on here. Combined with the 130 day age of the last entries, I'm thinking that possibly an older version of INN for Fedora had a default compiled in. Thanks for the info, everybody. -- Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/ There are two major products that come out of Berkeley: LSD and BSD [Unix]. We don't believe this to be a coincidence. -- Jeremy S. Anderson
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