summaryrefslogtreecommitdiff
path: root/templates/system/syslog/node.def
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 /templates/system/syslog/node.def
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 'templates/system/syslog/node.def')
-rw-r--r--templates/system/syslog/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/system/syslog/node.def b/templates/system/syslog/node.def
index 81fb3f6c..ebe02232 100644
--- a/templates/system/syslog/node.def
+++ b/templates/system/syslog/node.def
@@ -1,5 +1,5 @@
priority: 400
help: System logging daemon
end: if /opt/vyatta/sbin/vyatta_update_syslog.pl; then
- sudo /usr/sbin/invoke-rc.d rsyslog restart
+ sudo /usr/sbin/invoke-rc.d rsyslog reload || sudo /usr/sbin/invoke-rc.d rsyslog restart
fi