Here’s a simple logrotate script for Tomcat:
1 2 3 4 5 6 |
<pre>/usr/tomcat/apache-tomcat-5.5.27/logs/*.log { rotate 90 lastaction /sbin/service tomcat restart endscript } |
It should be placed at:
1 |
/etc/logrotate.d/tomcat |