I'm about to set up log rotation using logrotate, but I have a
question about how to do it.

The general examples imply that one should include the following in the script:

postrotate
/sbin/service solr restart
endscript

but it seems to me that any requests that come in during that restart
process are going to return errors. The other way to do it is to use

copytruncate

but that will cause any requests that come in during the time that the
file is being truncated to not appear in the log.

How do you set up your logrotate file?

Thanks,
Paul

Reply via email to