BSD 4_3_Tahoe development
[unix-history] / usr / src / new / nntp / support / README
CommitLineData
0722a577
C
1>>>>>>>>>>>>>>>>>>>>>>>>> No software in the NNTP 1.4 package
2>> NOTE NOTE NOTE NOTE >> uses the NEWGROUPS command. As a result,
3>> NOTE NOTE NOTE NOTE >> mkgrdates is no longer supported, but is
4>>>>>>>>>>>>>>>>>>>>>>>>> included for completeness.
5
6 Mkgrdates is run by cron periodically (say, every 6 or 12 hours --
7it's up to you). All it does is produce a cronologically ordered list
8of newsgroups in the active file, along with their dates of creation.
9It tries to be intelligent, and if the active file hasn't changed since
10it was last run, it simply exits.
11
12 So, you'll need to put "mkgrdates" in /usr/lib/crontab to
13be run periodically. Every day is probably good enough.
14
15 Some things you might want to be aware of are that it creates
16and updates the files STAT_FILE and NGDATE_FILE, defined in
17../common/conf.h. It's up to you to define these constants to suit
18your system.
19
20 The file "access_file" is the file which tells the news server
21which hosts can read, which can post, and which can transfer.
22This file wants to be installed wherever ACCESS_FILE in ../common/conf.h
23says it should be (you can configure this to suit you). Remember
24that this should be readable by whatever uid the news server runs
25as. Further, remember that the entry "default" must be first in
26the table.
27
28 >>> The access file will support subnets iff you have <<<
29 >>> defined SUBNET when you made the server. <<<
30
31 Finally, edit Makefile to reflect DESTDIR -- where you want
32the binary to be installed for mkgrdates.
33
34 If you're having the nntp server log copious info, you will
35probably want to run the stat package developed by Erik Fair.
36Once a week you should have crontab do
37
38 awk -f nntp_awk nntplog.old >& nntp_report
39
40where "nntplog.old" is the last week's nntp log file produced
41by syslog. Any errors which it cannot resolve are placed
42in the front of the report.