]> git.openstreetmap.org Git - chef.git/commitdiff
Enable GPS update service
authorTom Hughes <tom@compton.nu>
Wed, 16 Oct 2013 18:35:35 +0000 (19:35 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 16 Oct 2013 18:35:35 +0000 (19:35 +0100)
cookbooks/gps-tile/recipes/default.rb
cookbooks/gps-tile/templates/default/update.init.erb

index 8609f95f5ee183d5f5070dedf6af25919872ff58..d92bff63a79f0e976efc759b1c799d048f88f239 100644 (file)
@@ -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"
index 724ecb164770df1ad38d4a2214214deea5ef9d82..95aeeebd6ff93f56493c501a70b814e8ef5864c6 100644 (file)
@@ -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() {