From 77b59a98a45c63cacee7a0684699b121eaed83dc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 29 Mar 2014 21:55:03 +0100 Subject: [PATCH] rotate php-fpm logs --- .../templates/default/logrotate.nominatim.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 +} -- 2.43.2