From: Tom Hughes Date: Wed, 16 Oct 2013 18:35:35 +0000 (+0100) Subject: Enable GPS update service X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/9949b8b0124a95a97ea9cc27e8c98a2844d4eab8?ds=sidebyside;hp=d62bfa5748262e2d2e32936982ec925263f92558 Enable GPS update service --- diff --git a/cookbooks/gps-tile/recipes/default.rb b/cookbooks/gps-tile/recipes/default.rb index 8609f95f5..d92bff63a 100644 --- a/cookbooks/gps-tile/recipes/default.rb +++ b/cookbooks/gps-tile/recipes/default.rb @@ -85,11 +85,11 @@ template "/etc/init.d/gps-update" do mode 0755 end -#service "gps-update" do -# action [ :enable, :start ] -# supports :restart => true -# subscribes :restart, "git[/srv/gps-tile.openstreetmap.org/updater]" -#end +service "gps-update" do + action [ :enable, :start ] + supports :restart => true + subscribes :restart, "git[/srv/gps-tile.openstreetmap.org/updater]" +end remote_directory "/srv/gps-tile.openstreetmap.org/html" do source "html" diff --git a/cookbooks/gps-tile/templates/default/update.init.erb b/cookbooks/gps-tile/templates/default/update.init.erb index 724ecb164..95aeeebd6 100644 --- a/cookbooks/gps-tile/templates/default/update.init.erb +++ b/cookbooks/gps-tile/templates/default/update.init.erb @@ -3,7 +3,7 @@ # DO NOT EDIT - This file is being maintained by Chef start() { - start-stop-daemon --start --chuid gpstile --chdir /srv/gps-tile.openstreetmap.org --background --make-pidfile --pidfile /var/run/gps-update.pid --exec /src/gps-tile.openstreetmap.org/updater/update + start-stop-daemon --start --chuid gpstile --chdir /srv/gps-tile.openstreetmap.org --background --make-pidfile --pidfile /var/run/gps-update.pid --exec /srv/gps-tile.openstreetmap.org/updater/update } stop() {