From: Sarah Hoffmann <lonvia@denofr.de>
Date: Sat, 29 Mar 2014 20:55:03 +0000 (+0100)
Subject: rotate php-fpm logs
X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/77b59a98a45c63cacee7a0684699b121eaed83dc

rotate php-fpm logs
---

diff --git a/cookbooks/nominatim/templates/default/logrotate.nominatim.erb b/cookbooks/nominatim/templates/default/logrotate.nominatim.erb
index fda755c64..5c19b31bb 100644
--- a/cookbooks/nominatim/templates/default/logrotate.nominatim.erb
+++ b/cookbooks/nominatim/templates/default/logrotate.nominatim.erb
@@ -9,3 +9,15 @@
   notifempty
   create 640 nominatim adm
 }
+
+
+/var/log/php5-fpm.log {
+  weekly
+  missingok
+  rotate 3
+  compress
+  delaycompress
+  postrotate
+    /usr/bin/service php5-fpm restart > /dev/null
+  endscript
+}