From: Sarah Hoffmann Date: Mon, 24 Oct 2016 08:17:29 +0000 (+0200) Subject: nominatim: switch apache reload method for logrotate X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/df3d14c275bd4c15de12ae96d9155e9d2b93e5ee?hp=4e7feb611c39022408fe3a6fb4dd960f33b625e1 nominatim: switch apache reload method for logrotate Apache reload stopped working with upgrade to Ubuntu 16.04. --- 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 }