Re: NNTPC: Wish list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 7 Jun 1996, Julian Assange <proff@suburbia.net> wrote:
> > * The active file for my main newsfeed (active.news1.ucsd.edu) is
> > updated according to the expire time listed in the "nntpcache.servers"
> > file.  However, the main "active" file isn't then updated until I send the
> > server a -USR1 signal.  Am I missing something in the documentation?
> 
> The main active file will only updated if the hash of the server 
> active file has changed. Can you provide the logs? You should see something
> like collating active.news1.ucsd.edu -> active.tmp

Sure thing.  Here's the log output from this evening.  The server
was dormant between 16:00h and 01:28 or so, and it looks like the
active.news1.ucsd.edu was pulled over properly at that time.

Thanks again, 

-- Adam



Software:  nntpcache 0.87.9.1UL, Linux 1.99.4, gcc 2.7.2, libc 5.2.18, 
the remote server is running INN 1.4, and the newsreader of choice is trn.

Here's my /etc/nntpcache.servers entry:

*       news1.ucsd.edu  119     0.0.0.0 1h      48h

Here's 'ls -l /var/spool/newscache/active*', before a -USR1 to nntpcached:

-rw-r--r--   1 news     news       354882 Jun  6 09:44 active
-rw-r--r--   1 news     news       354842 Jun  7 01:31 active.news1.ucsd.edu
-rw-r--r--   1 news     news            9 Jun  7 01:31 active.news1.ucsd.edu.hash
-rw-r--r--   1 news     news       194692 Jun  6 10:22 active.times
-rw-r--r--   1 news     news       194656 Jun  7 01:32 active.times.news1.ucsd.edu
-rw-r--r--   1 news     news            9 Jun  6 09:44 active.times.news1.ucsd.e

And the /var/log/messages from the same time:

Jun  7 01:29:20 nuthaus su: atilghma on /dev/ttyp4
Jun  7 01:29:57 nuthaus /usr/local/sbin/nntpcached[5943]: 'overview.fmt.news1.ucsd.edu' too old. rebuilding
Jun  7 01:29:57 nuthaus nntpcached-update[12966]: checking server news1.ucsd.edu for 'overview.fmt'
Jun  7 01:30:01 nuthaus nntpcached-update[12966]: spooling 'overview.fmt' from news1.ucsd.edu -> memory
Jun  7 01:30:01 nuthaus nntpcached-update[12966]: same hash for overview.fmt.news1.ucsd.edu.tmp and overview.fmt.news1.ucsd.edu, updating time for overview.fmt.news1.ucsd.edu
Jun  7 01:30:01 nuthaus nntpcached-update[12966]: 'active.news1.ucsd.edu' too old. rebuilding
Jun  7 01:30:01 nuthaus nntpcached-update[12966]: checking server news1.ucsd.edu for 'active'
Jun  7 01:30:03 nuthaus nntpcached-update[12966]: spooling 'active' from news1.ucsd.edu -> memory
Jun  7 01:31:40 nuthaus nntpcached-update[12966]: 'active.times.news1.ucsd.edu' too old. rebuilding
Jun  7 01:31:40 nuthaus nntpcached-update[12966]: checking server news1.ucsd.edu for 'active.times'
Jun  7 01:31:40 nuthaus nntpcached-update[12966]: spooling 'active.times' from news1.ucsd.edu -> memory
Jun  7 01:32:35 nuthaus nntpcached-update[12966]: same hash for active.times.news1.ucsd.edu.tmp and active.times.news1.ucsd.edu, updating time for active.times.news1.ucsd.edu
Jun  7 01:32:35 nuthaus nntpcached-update[12966]: 'newsgroups.news1.ucsd.edu' non-existant. creating

And now, the 'killall -USR1 nntpcached':
Jun  7 01:38:50 nuthaus su: atilghma on /dev/ttyp4
Jun  7 01:38:56 nuthaus /usr/local/sbin/nntpcached[5943]: 'overview.fmt' older than 'overview.fmt.news1.ucsd.edu'. collating
Jun  7 01:38:56 nuthaus /usr/local/sbin/nntpcached[5943]: 'active' older than 'active.news1.ucsd.edu'. collating
Jun  7 01:38:56 nuthaus /usr/local/sbin/nntpcached[5943]: collating active.news1.ucsd.edu -> active.tmp

And the ls -l of /var/spool/newscache/active* after the -USR1:

-rw-r--r--   1 news     news       354882 Jun  7 01:38 /var/spool/newscache/active
-rw-r--r--   1 news     news            0 Jun  7 01:38 /var/spool/newscache/active.lock
-rw-r--r--   1 news     news       354842 Jun  7 01:31 /var/spool/newscache/active.news1.ucsd.edu
-rw-r--r--   1 news     news            9 Jun  7 01:31 /var/spool/newscache/active.news1.ucsd.edu.hash
-rw-r--r--   1 news     news       194692 Jun  6 10:22 /var/spool/newscache/active.times
-rw-r--r--   1 news     news       194656 Jun  7 01:32 /var/spool/newscache/active.times.news1.ucsd.edu
-rw-r--r--   1 news     news            9 Jun  6 09:44 /var/spool/newscache/active.times.news1.ucsd.edu.hash

> ...
>
> Do you have a sister you can donate to a good cause?

Alas, I'm an only child, but perhaps I can scrape up something :-)


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux