add tmpwatch section to FAQ
[spider.git] / html / spiderFAQ-2.html
index ca16815ac2daed59965b5e9ff076221d4303510d..0f607e86c22bb4ec242fd6cd0ecf81eb654abe5b 100644 (file)
@@ -68,6 +68,17 @@ forward.pl and edit it to meet your requirements.  You will need to issue
 the command <EM>load/forward</EM> or restart Spider for the changes to 
 take effect.
 <P>
+<H2><A NAME="ss2.5">2.5 How can I automatically limit the amount of debug logfiles that are stored?</A>
+</H2>
+
+<P>Use the tmpwatch command.  Add a line in /etc/cron.daily like this ...
+<P>
+<BLOCKQUOTE><CODE>
+<PRE>
+/usr/sbin/tmpwatch -f 240 /spider/data/debug
+</PRE>
+</CODE></BLOCKQUOTE>
+<P>This will limit your debug data down to the last 10 days
 <P>
 <HR>
 Next