BSD 4_3 development
[unix-history] / usr / contrib / nntp / doc / mkgrdates.8c
CommitLineData
a87c02c8
C
1.TH MKGRDATES 8C "26 October 1985"
2.UC 4
3.SH NAME
4mkgrdates \- Make the newsgroup creation date file
5for the NNTP server
6.SH SYNOPSIS
7.B /usr/spool/news/lib/mkgrdates
8.SH DESCRIPTION
9.I Mkgrdates
10maintains the newsgroup creation date file for the
11Network News Transfer Protocol server (which uses
12the newsgroup creation date file for the NEWGROUPS
13command). When executed,
14.I mkgrdates
15goes through the active file
16(usually
17.IR /usr/spool/news/lib/active )
18and creates a file
19(usually
20.IR /usr/spool/news/lib/groupdates )
21containing the creation dates and times of the
22newsgroups in the active file. The
23.I groupdates
24file has one line for each newsgroup, in the form
25``date newsgroup'' where ``date'' is the newsgroup's
26creation time, in seconds since midnight, Jan. 1,
271970, GMT,
28and ``newsgroup'' is the name of the newsgroup in question.
29.PP
30Since generating the
31.I groupdates
32file is expensive, when
33.I mkgrdates
34is run it creates a file (usuaully
35.IR /usr/spool/news/lib/mkgdstats )
36containing the length, in bytes, of the active file.
37The next time
38.I mkgrdates
39is invoked, it compares the contents of the
40.I mkgdstats
41file against the length of the active file, and
42exits if these lengths are the same. If the
43lengths are not the same, it rebuilds the
44.I groupdates
45file, and sets the
46.I mkgdstats
47file to the appropriate value.
48This scheme avoids a fair amount of what would
49essentially be wasted computing.
50.PP
51.I Mkgrdates
52should be run once or twice a day by an entry in
53.I /usr/lib/crontab
54.SH BUGS
55It would be good to get rid of this and have the
56news server do it, but nobody seems to be able
57to come up with an easy, inexpensive way.
58I'm certainly open to suggestions.
59.SH AUTHOR
60Phil Lapsley
61.SH SEE ALSO
62cron(1),
63nntpd(8C)