Avoid errors rotating logs on nodes where gpx-import is stopped
authorTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 10:02:27 +0000 (10:02 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 10:03:06 +0000 (10:03 +0000)
cookbooks/web/templates/default/logrotate.web.erb

index f14a2c1eae2f115e76115d785d8bbcb1d01f849e..850e3805926ac92dfc9cf57ac47932bb494c9e07 100644 (file)
@@ -17,7 +17,7 @@
 <% end -%>
 <% end -%>
 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
-    /bin/systemctl reload gpx-import
+    /bin/systemctl try-reload-or-restart gpx-import
 <% end -%>
 <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
     /bin/systemctl reload cgimap