X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/551486b41f459c7ecc17735fd78c47583ccf5770..66c8810de3626826ca758bf47b0def637254c97c:/cookbooks/web/recipes/gpx.rb?ds=inline diff --git a/cookbooks/web/recipes/gpx.rb b/cookbooks/web/recipes/gpx.rb index ecaf854df..59d5bc1de 100644 --- a/cookbooks/web/recipes/gpx.rb +++ b/cookbooks/web/recipes/gpx.rb @@ -75,12 +75,11 @@ systemd_service "gpx-import" do private_devices true protect_system "full" protect_home true - no_new_privileges true restart "on-failure" pid_file "#{pid_directory}/gpx-import.pid" end -if %w(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