[node-patches] Change in ovirt-node[master]: logrotate: Fix syslog config
fabiand at redhat.com
fabiand at redhat.com
Wed Jan 14 11:26:41 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:
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M recipe/common-post.ks
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/88/36888/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/36888
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I67b0e8c38a5978d71304f2ba62d532de1afeb43b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
More information about the node-patches
mailing list