X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/261e7e9cd1a9882faa4ed7087b5902ebafe25988..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/web/recipes/gpx.rb?ds=inline diff --git a/cookbooks/web/recipes/gpx.rb b/cookbooks/web/recipes/gpx.rb index b2117dde9..3802cfd7f 100644 --- a/cookbooks/web/recipes/gpx.rb +++ b/cookbooks/web/recipes/gpx.rb @@ -67,13 +67,13 @@ template "/etc/init.d/gpx-import" do :database_password => db_passwords["gpximport"] end -if ["database_offline", "database_readonly", "gpx_offline"].include?(node[:web][:status]) +if %w(database_offline database_readonly gpx_offline).include?(node[:web][:status]) service "gpx-import" do action :stop end else service "gpx-import" do - action [ :enable, :start ] + action [:enable, :start] supports :restart => true, :reload => true subscribes :restart, "execute[gpx-import-build]" subscribes :restart, "template[/etc/init.d/gpx-import]"