[node-patches] Change in ovirt-node[master]: Tweak logrotate configs for syslogs

rbarry at redhat.com rbarry at redhat.com
Wed Feb 26 17:46:41 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Tweak logrotate configs for syslogs
......................................................................

Tweak logrotate configs for syslogs

We should rotate syslogs more often and compress them to ensure
that /var/log does not fill.

Change-Id: I8694edda7972f9801db8905490303e179bb6cebd
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1063395
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M recipe/common-post.ks
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/96/25096/1

diff --git a/recipe/common-post.ks b/recipe/common-post.ks
index ef500e8..78acdbb 100644
--- a/recipe/common-post.ks
+++ b/recipe/common-post.ks
@@ -30,6 +30,9 @@
 # since we run it every 10 minutes instead.
 rm -f /etc/cron.daily/logrotate
 
+# Logrotate more judiciously so the size of syslog stays under control
+sed -i '/^.*sharedscripts/a \    rotate 5\n    size 15M\n    compress' /etc/logrotate.d/syslog
+
 # root's bash profile
 cat >> /root/.bashrc << \EOF_bashrc
 # aliases used for the temporary


-- 
To view, visit http://gerrit.ovirt.org/25096
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8694edda7972f9801db8905490303e179bb6cebd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list