Use copytruncate option for Heka log rotation

Since Heka cannot be told to close its log file and re-open it, we have
to use the copytruncate option of logrotate.

Change-Id: I8ad22f76e3c4e78a3a7a976c5a9f8fc7bc2d6dd4
This commit is contained in:
Simon Pasquier 2015-04-08 11:48:47 +02:00
parent 59949abcbf
commit ac5b46cb71
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,7 @@
<%= @log_file %> {
daily
missingok
# Heka cannot be told to close its log file and re-open it so we need to
# use the copytruncate option
copytruncate
}