MAKEACTIVE(8) | System Manager's Manual | MAKEACTIVE(8) |
makeactive - tool to recover Usenet active file.
makeactive [ -m ] [ -o ]
Makeactive invokes find(1) to get a list of all directories in the news spool tree, /var/spool/news. It discards directories named lost+found as well as those that have a period in them. It scans all other directories for all-numeric filenames and determines the highest and lowest number. The program's output is a set of active(5) file lines. Because there is no way to know if a group is moderated or disabled, the fourth field of all entries will be y. Also, mid-level directories that aren't newsgroups will also created as newsgroups with no entries (for example, there is a ``comp.sources.unix'' group, but no ``comp.sources'').
Makeactive exits with non-zero status if any problems occurred.
A typical way to use the program is with the following /bin/sh commands:
ctlinnd throttle "Rebuilding active file" TEMP=${TMPDIR-/var/spool/news/in.coming/tmp}/act$$ if [ -f /var/lib/news/active ] ; then
if makeactive -o >${TEMP} ; then
mv ${TEMP} /var/lib/news/active
fi else
if makeactive >${TEMP} ; then
# Edit to restore moderated
# and aliased groups.
...
mv ${TEMP} /var/lib/news/active
fi fi ctlinnd reload active "New active file" ctlinnd go ''
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.3, dated 1996/10/29.
active(5), ctlinnd(8), dbz(3), filechan(8), history(5), innd(8), newsfeeds(5), makehistory(8), newsrequeue(8).