From 2415dea5aa5ecc1542b3da7795c0b7c49b98f259 Mon Sep 17 00:00:00 2001 From: James Davidson Date: Thu, 5 Apr 2012 17:52:08 -0700 Subject: 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. --- debian/vyatta-cfg-system.postinst.in | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 debian/vyatta-cfg-system.postinst.in (limited to 'debian') diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in old mode 100644 new mode 100755 index 36644e7a..3f75d6d7 --- 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 -- cgit v1.2.3