[node-patches] Change in ovirt-node[ovirt-3.5]: logrotate: Fix syslog config

fabiand at redhat.com fabiand at redhat.com
Wed Jan 14 14:01:40 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: logrotate: Fix syslog config
......................................................................

logrotate: Fix syslog config

Sometimes log files do not exist, logrotate should not fail because of
the missing files

Change-Id: I67b0e8c38a5978d71304f2ba62d532de1afeb43b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1182073
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
(cherry picked from commit 9c3a9ffa03858cb61cb12f9fd84b94c61865467a)
---
M recipe/common-post.ks
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/07/36907/1

diff --git a/recipe/common-post.ks b/recipe/common-post.ks
index c45b0ef..1afe223 100644
--- a/recipe/common-post.ks
+++ b/recipe/common-post.ks
@@ -28,7 +28,7 @@
 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
+sed -i '/^.*sharedscripts/a \    rotate 5\n    size 15M\n    compress\n    missingok' /etc/logrotate.d/syslog
 
 if rpm -q --quiet rhn-virtualization-host; then
     sed -i -e 's/\.py/\.pyc/' -e 's/<//' /etc/cron.d/rhn-virtualization.cron


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I67b0e8c38a5978d71304f2ba62d532de1afeb43b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list