X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/caf29106dbab75738cb0f437b11e0297cff3360d..149540095c8c9b874b7fa96ab48a4fcae839ef98:/cookbooks/nominatim/templates/default/logrotate.apache.erb diff --git a/cookbooks/nominatim/templates/default/logrotate.apache.erb b/cookbooks/nominatim/templates/default/logrotate.apache.erb index 170ddb189..4948b5ce1 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.apache.erb @@ -3,13 +3,15 @@ /var/log/apache2/*.log { weekly missingok - rotate 8 + rotate 6 compress delaycompress notifempty create 640 root adm sharedscripts postrotate - /usr/bin/service apache2 reload > /dev/null 2>&1 + if /etc/init.d/apache2 status > /dev/null ; then \ + /etc/init.d/apache2 reload > /dev/null; \ + fi; endscript }