summaryrefslogtreecommitdiff
path: root/sysconf
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-04-05 17:52:08 -0700
committerJames Davidson <james.davidson@vyatta.com>2012-04-18 11:04:44 -0700
commit2415dea5aa5ecc1542b3da7795c0b7c49b98f259 (patch)
tree75c34b1c20ebbcf0dec9689bbb702f116363cc26 /sysconf
parentf329c52b1d835aee551e2002e25937ed9447eb7d (diff)
downloadvyatta-cfg-system-2415dea5aa5ecc1542b3da7795c0b7c49b98f259.tar.gz
vyatta-cfg-system-2415dea5aa5ecc1542b3da7795c0b7c49b98f259.zip
Use rsyslog to trigger log rotation
The previous implementation of log rotation used an hourly cron job to check log file size and possibly perform a rotation. If the logging rate is high, this interval may allow for root file system space exhustion. Utilizing rsyslog's outchannel mechanism enables log rotation to be initiated as soon as the log file becomes larger than its configured size. Fixes Bug 7807.
Diffstat (limited to 'sysconf')
-rw-r--r--sysconf/logrotate_messages9
1 files changed, 0 insertions, 9 deletions
diff --git a/sysconf/logrotate_messages b/sysconf/logrotate_messages
deleted file mode 100644
index 7ffa559b..00000000
--- a/sysconf/logrotate_messages
+++ /dev/null
@@ -1,9 +0,0 @@
-/var/log/messages {
- missingok
- notifempty
- rotate 10
- size=1000k
- postrotate
- invoke-rc.d rsyslog reload >/dev/null
- endscript
-}