aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-21 19:56:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-21 19:56:19 +0000
commit36ff50ba685a4fb60c36cdca6504983cbbb85251 (patch)
tree344dd439effdaa75d58c820aa4b0a038a766fe3c
parent11091cb1b246529541930679d41e89fd02ba00f5 (diff)
downloadpfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.tar.gz
pfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.tar.bz2
pfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.zip
Truncate the log file every so often
-rw-r--r--packages/pfstat.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index 36a432a0..f34a988e 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -33,7 +33,13 @@
<item>
<modifyfilename>/etc/crontab</modifyfilename>
<textneeded>
-*/5 * * * * root /usr/local/bin/pfstat -c /usr/local/etc/pfstat.conf -d /var/log/pfstat
+* * * * * root /usr/local/bin/pfstat -c /usr/local/etc/pfstat.conf -d /var/log/pfstat
+ </textneeded>
+ </item>
+ <item>
+ <modifyfilename>/etc/crontab</modifyfilename>
+ <textneeded>
+1 1 * * 1 root tail -n 50000 /var/log/pfstat >/tmp/pfstat &amp;&amp; mv /tmp/pfstat /var/log/pfstat
</textneeded>
</item>
</modify_system>