X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e9a6a2a72736c2196f124a78ad569292de83f18b..a8719d3ebeae52ab2e0586a0ebb56a0c448a439e:/cookbooks/web/recipes/statistics.rb?ds=inline diff --git a/cookbooks/web/recipes/statistics.rb b/cookbooks/web/recipes/statistics.rb index 769cf5753..84848b003 100644 --- a/cookbooks/web/recipes/statistics.rb +++ b/cookbooks/web/recipes/statistics.rb @@ -32,10 +32,14 @@ end systemd_service "web-statistics" do description "Generate web statistics" - exec_start "/usr/local/bin/statistics" + environment "RAILS_ENV" => "production", + "SECRET_KEY_BASE_DUMMY" => "1" user "rails" + working_directory rails_directory + exec_start "/usr/local/bin/statistics" sandbox :enable_network => true - read_write_paths "#{rails_directory}/tmp" + memory_deny_write_execute false + read_write_paths ["#{rails_directory}/tmp", "/var/log/web"] end systemd_timer "web-statistics" do