summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2011-06-15 17:59:13 -0700
committerBob Gilligan <gilligan@vyatta.com>2011-06-15 17:59:13 -0700
commit9d365d92d3eac9e7242a3d2314ca2d86cce89e75 (patch)
tree72187efebc3673eefedd4889e303d3b14747465a /etc
parentc129847cd7bbd2731e5ae83594c7b6d5e1cd1395 (diff)
downloadvyatta-cfg-9d365d92d3eac9e7242a3d2314ca2d86cce89e75.tar.gz
vyatta-cfg-9d365d92d3eac9e7242a3d2314ca2d86cce89e75.zip
Bugfix 6767: Syslog any errors from rmmod instead of writing to log file.
Also rotate the config related log files under /var/log/vyatta so that they don't fill up the root filesystem.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-router2
-rw-r--r--etc/logrotate.d/vyatta-config-logs6
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index 4fd3f00..e10f054 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -136,7 +136,7 @@ load_bootfile ()
cleanup_raid()
{
MD_MODULES='linear multipath raid0 raid1 raid456 raid5 raid6 raid10'
- rmmod $MD_MODULES > /tmp/vyatta_raid_cleanup.log 2>&1
+ rmmod -s $MD_MODULES
}
#
diff --git a/etc/logrotate.d/vyatta-config-logs b/etc/logrotate.d/vyatta-config-logs
new file mode 100644
index 0000000..66cb374
--- /dev/null
+++ b/etc/logrotate.d/vyatta-config-logs
@@ -0,0 +1,6 @@
+/var/log/vyatta/cfg-stderr.log /var/log/vyatta/cfg-stdout.log /var/log/vyatta/vyatta-commit.log /var/log/vyatta/vyatta-config-loader.log {
+ nocompress
+ size 1M
+ rotate 2
+ create 664 root vyattacfg
+}