summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
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 /debian/vyatta-cfg-system.postinst.in
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 'debian/vyatta-cfg-system.postinst.in')
-rwxr-xr-x[-rw-r--r--]debian/vyatta-cfg-system.postinst.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 36644e7a..3f75d6d7 100644..100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -129,6 +129,7 @@ mkdir -p /opt/vyatta/etc/config/user-data
mkdir -p /opt/vyatta/etc/config/support
chown -R root:vyattacfg /opt/vyatta/etc/config
chmod -R 775 /opt/vyatta/etc/config
+mkdir -p /opt/vyatta/etc/logrotate
# create /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
# this should be after 'mkdir -p /opt/vyatta/etc/config/scripts' above