I would like to archive my tomcat access logs, or at least compress them. Tomcat is by default rotating the logfiles, but its not compressing them.
Logrotate could probably help me here, but in the examples I have seen, you need to restart the service after each rotation and this is a no go for me because we are talking production servers.
create 640 root adm
if [ -f /var/run/apache.pid ]; then
/etc/init.d/apache restart > /dev/null
Do i really need to restart the apache (or Tomcat in my case) service after each log rotation?
I would just use logrotate to compress them as tomcat already rotates the logs everyday.