Skip to content

Instantly share code, notes, and snippets.

@plentz
Created Mar 24, 2015
Embed
What would you like to do?
include_recipe "logrotate"
logrotate_app "tomcat" do
cookbook "logrotate"
path "/var/log/tomcat/catalina.out"
options ["copytruncate", "missingok", "notifempty"]
frequency "daily"
rotate 3
create "644 tomcat tomcat"
size "50M"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment