46 lines
2.0 KiB
HTML
46 lines
2.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>News Leafsite mini-HOWTO: How do I maintain leafnode?</TITLE>
|
|
<LINK HREF="News-Leafsite-5.html" REL=next>
|
|
<LINK HREF="News-Leafsite-3.html" REL=previous>
|
|
<LINK HREF="News-Leafsite.html#toc4" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="News-Leafsite-5.html">Next</A>
|
|
<A HREF="News-Leafsite-3.html">Previous</A>
|
|
<A HREF="News-Leafsite.html#toc4">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s4">4. How do I maintain leafnode?</A></H2>
|
|
|
|
<P>Now you have got a working news system up and running, but there are
|
|
still some things to do. You may edit the file /usr/lib/leafnode/config
|
|
to set the expire dates of your groups. This number means, when old
|
|
messages should be deleted. The standard time of 20 days is much often
|
|
too long if you read some groups with much traffic, 4 days or a week
|
|
are in most cases a good time for your system. You may change the value
|
|
for all groups ("expire = n" to hold all groups n days), but you tell
|
|
leafnode to change this time for some separate groups writing<BR>
|
|
groupexpire foo.bar n<BR>
|
|
to set the expire time for the group foo.bar to n days.
|
|
<P>This setting alone won't make leafnode deleting old messages, a
|
|
separate program is responsible for this: texpire. It may be started
|
|
as a cron job or by command line. If your computer is up all the time,
|
|
you may want to add the following line to news' crontab file (to edit
|
|
it, log in as news and type "crontab -e" or as type root "crontab -u
|
|
news -e"):<BR>
|
|
0 19 * * * /usr/local/sbin/texpire<BR>
|
|
This line causes the cron daemon to star texpire every day at
|
|
19:00. Check the crontab manual page for further adjustment. If
|
|
your computer is not regularly switched on, you may start texpire
|
|
just from time to time, when you notice that fetch gets slower. It
|
|
works fine as with the "cron-method".
|
|
<P>
|
|
<HR>
|
|
<A HREF="News-Leafsite-5.html">Next</A>
|
|
<A HREF="News-Leafsite-3.html">Previous</A>
|
|
<A HREF="News-Leafsite.html#toc4">Contents</A>
|
|
</BODY>
|
|
</HTML>
|