From 1f1c54377313bec32f1ba13beb820726b95c2f01 Mon Sep 17 00:00:00 2001 From: Maksim Horbul Date: Tue, 2 Aug 2016 11:34:52 -0700 Subject: [PATCH] opscode logrotate should use it's own status file when SELinux is enabled on the box opscode logrotate updates fcontext of the status file every time it runs and that breaks default system logrotate process. --- .../private-chef/templates/default/opc_logrotate.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omnibus/files/private-chef-cookbooks/private-chef/templates/default/opc_logrotate.cron b/omnibus/files/private-chef-cookbooks/private-chef/templates/default/opc_logrotate.cron index 0311cd0144..1e4ea963b3 100644 --- a/omnibus/files/private-chef-cookbooks/private-chef/templates/default/opc_logrotate.cron +++ b/omnibus/files/private-chef-cookbooks/private-chef/templates/default/opc_logrotate.cron @@ -3,4 +3,4 @@ PATH=/opt/opscode/embedded/sbin:$PATH command -v logrotate >/dev/null 2>&1 || exit 0 -nice -n 19 ionice -c3 logrotate /etc/opscode/logrotate.conf +nice -n 19 ionice -c3 logrotate -s /var/log/opscode/logrotate.status /etc/opscode/logrotate.conf