Skip to content

Commit

Permalink
opscode logrotate should use it's own status file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mhorbul committed Aug 2, 2016
1 parent edce637 commit 1f1c543
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1f1c543

Please sign in to comment.