Here’s a simple logrotate script for Tomcat:
/usr/tomcat/apache-tomcat-5.5.27/logs/*.log {
rotate 90
lastaction
/sbin/service tomcat restart
endscript
}
It should be placed at:
/etc/logrotate.d/tomcat
Here’s a simple logrotate script for Tomcat:
/usr/tomcat/apache-tomcat-5.5.27/logs/*.log {
rotate 90
lastaction
/sbin/service tomcat restart
endscript
}
It should be placed at:
/etc/logrotate.d/tomcat