]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: reload frontend after logrotate
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 13 Aug 2023 07:09:51 +0000 (09:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 13 Aug 2023 07:09:51 +0000 (09:09 +0200)
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
 }