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

fabiand at fedoraproject.org fabiand at fedoraproject.org
Thu Mar 27 15:08:48 UTC 2014


Hello Ryan Barry,

I'd like you to do a code review.  Please visit

    http://gerrit.ovirt.org/26163

to review the following change.

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/63/26163/1

diff --git a/recipe/common-post.ks b/recipe/common-post.ks
index 0c8379e..6c5e7eb 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/26163
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8694edda7972f9801db8905490303e179bb6cebd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: node-3.0
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list