]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/logrotate.nominatim.erb
nominatim: reload frontend after logrotate
[chef.git] / cookbooks / nominatim / templates / default / logrotate.nominatim.erb
index ba7a5bc3f590a2b99b84efc52f776c2383998ccc..5c50082e46f291368de9b8819c43e0b0de356aa3 100644 (file)
@@ -17,5 +17,9 @@
   compress
   delaycompress
   notifempty
+<% if node[:nominatim][:api_flavour] == "python" %>
+  postrotate
+        systemctl reload nominatim.service
+<% end -%>
   create 640 www-data adm
 }