amend FAQ on tmpwatch to correct information
[spider.git] / html / spiderFAQ-2.html
index 58b26a9dfeba18ac40acc86c8c011acf802a83b4..125b9d334792f37cda684b36850075ab1417ceb3 100644 (file)
@@ -5,6 +5,7 @@
  <TITLE>The DXSpider FAQ : Administration</TITLE>
  <LINK HREF="spiderFAQ-1.html" REL=previous>
  <LINK HREF="spiderFAQ.html#toc2" REL=contents>
+<link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
 </HEAD>
 <BODY>
 Next
@@ -67,6 +68,18 @@ 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.  Create a file in /etc/cron.daily/ containing the line ...
+<P>
+<BLOCKQUOTE><CODE>
+<PRE>
+/usr/sbin/tmpwatch -f 240 /spider/data/debug
+</PRE>
+</CODE></BLOCKQUOTE>
+<P>Remember to make it executable!
+<P>This will limit your debug data down to the last 10 days
 <P>
 <HR>
 Next