]> git.openstreetmap.org Git - chef.git/commitdiff
Invoke low zoom update via a shell
authorTom Hughes <tom@compton.nu>
Sat, 20 May 2017 17:55:12 +0000 (18:55 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 20 May 2017 17:55:12 +0000 (18:55 +0100)
The version of systemd in Ubuntu 16.04 doesn't support template
variables in the name of the program to start (more recent versions
do) so wrap it in a shell.

cookbooks/tile/recipes/default.rb

index b3001c1e5c749776b0f3f7daa0289c7aca7b81a6..ceadecdf207190ff7f30c1e3ac0a98dc15cd22bd 100644 (file)
@@ -244,7 +244,7 @@ nodejs_package "millstone"
 systemd_service "update-lowzoom@" do
   description "Low zoom tile update service for %i layer"
   user "tile"
-  exec_start "/usr/local/bin/update-lowzoom-%i"
+  exec_start "/bin/bash /usr/local/bin/update-lowzoom-%i"
   private_tmp true
   private_devices true
   private_network true