]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/logrotate.apache.erb
Add tile cookbook
[chef.git] / cookbooks / tile / templates / default / logrotate.apache.erb
diff --git a/cookbooks/tile/templates/default/logrotate.apache.erb b/cookbooks/tile/templates/default/logrotate.apache.erb
new file mode 100644 (file)
index 0000000..9a82d4c
--- /dev/null
@@ -0,0 +1,16 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+/var/log/apache2/*.log {
+  daily
+  size 1G
+  missingok
+  rotate 52
+  compress
+  delaycompress
+  notifempty
+  create 640 root adm
+  sharedscripts
+  postrotate
+    /usr/bin/service apache2 reload > /dev/null
+  endscript
+}