diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-21 19:56:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-21 19:56:19 +0000 |
commit | 36ff50ba685a4fb60c36cdca6504983cbbb85251 (patch) | |
tree | 344dd439effdaa75d58c820aa4b0a038a766fe3c /packages/pfstat.xml | |
parent | 11091cb1b246529541930679d41e89fd02ba00f5 (diff) | |
download | pfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.tar.gz pfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.tar.bz2 pfsense-packages-36ff50ba685a4fb60c36cdca6504983cbbb85251.zip |
Truncate the log file every so often
Diffstat (limited to 'packages/pfstat.xml')
-rw-r--r-- | packages/pfstat.xml | 8 |
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 && mv /tmp/pfstat /var/log/pfstat </textneeded> </item> </modify_system> |