From: Tom Hughes Date: Sat, 20 May 2017 17:55:12 +0000 (+0100) Subject: Invoke low zoom update via a shell X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5243ff791ccbdb55b5861c7926a485f6257357d8?hp=262347df604997a1cef52df74ffdb687e5a6c22a;ds=sidebyside Invoke low zoom update via a shell 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. --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index b3001c1e5..ceadecdf2 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -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