From df3d14c275bd4c15de12ae96d9155e9d2b93e5ee Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 24 Oct 2016 10:17:29 +0200 Subject: [PATCH 1/1] nominatim: switch apache reload method for logrotate Apache reload stopped working with upgrade to Ubuntu 16.04. --- cookbooks/nominatim/templates/default/logrotate.apache.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.43.2