summaryrefslogtreecommitdiff
path: root/sysconf
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2011-01-17 19:43:14 -0800
committerBob Gilligan <gilligan@vyatta.com>2011-01-17 19:48:41 -0800
commit507d28da53a8a40ef70a23031d06a2ec823fef64 (patch)
treec3dc513b5ab13ddd06f690b837660d9bfa853cc7 /sysconf
parentf552fc4a528cdbd5f232da41199fbfbc94078f57 (diff)
downloadvyatta-cfg-system-507d28da53a8a40ef70a23031d06a2ec823fef64.tar.gz
vyatta-cfg-system-507d28da53a8a40ef70a23031d06a2ec823fef64.zip
Bugfix 6668: Check to see if log files need rotation hourly.
Previously, log file rotation was checked by cron daily. Some log file -- such as those generated by PPP -- can grow rapidly. Such infrequent checking can lead to running out of disk space on systems with small disk drives or flash storage. This change checks for rotation hourly. (cherry picked from commit 71a31ff516ef63f5ce52ca1bca17e10497a6a15d)
Diffstat (limited to 'sysconf')
-rw-r--r--sysconf/vyatta-logrotate-hourly5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconf/vyatta-logrotate-hourly b/sysconf/vyatta-logrotate-hourly
new file mode 100644
index 00000000..055b4d5f
--- /dev/null
+++ b/sysconf/vyatta-logrotate-hourly
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+test -x /usr/sbin/logrotate || exit 0
+/usr/sbin/logrotate /etc/logrotate.conf
+