X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/caf29106dbab75738cb0f437b11e0297cff3360d..df3d14c275bd4c15de12ae96d9155e9d2b93e5ee:/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..7f28a2047 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.apache.erb @@ -10,6 +10,8 @@ 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 }