Skip to content

Instantly share code, notes, and snippets.

@imam-san
Created March 31, 2016 17:47
Show Gist options
  • Select an option

  • Save imam-san/108b51e5af6862f08bfa095bdae3d0a9 to your computer and use it in GitHub Desktop.

Select an option

Save imam-san/108b51e5af6862f08bfa095bdae3d0a9 to your computer and use it in GitHub Desktop.
create file
/etc/logrotate.d/tomcat
content tomcat
"
/opt/tomcat7/logs/catalina.out {
copytruncate
daily
rotate 7
compress
missingok
size 5M
}
"
execute manually
==== /usr/sbin/logrotate /etc/logrotate.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment