From 9949b8b0124a95a97ea9cc27e8c98a2844d4eab8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Oct 2013 19:35:35 +0100 Subject: [PATCH 1/1] Enable GPS update service --- cookbooks/gps-tile/recipes/default.rb | 10 +++++----- cookbooks/gps-tile/templates/default/update.init.erb | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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() { -- 2.43.2