X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/fc360eb083bafd47de673a91857b0120fb36f6fa..c9c9ccd01efe21f650cab8fce05210f60c7a76cc:/cookbooks/web/recipes/rails.rb?ds=sidebyside diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index b11da462b..1ab7bc1da 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -94,8 +94,13 @@ rails_port "www.openstreetmap.org" do end systemd_service "rails-jobs" do + action :delete +end + +systemd_service "rails-jobs@" do description "Rails job queue runner" type "simple" + environment "QUEUE" => "%I" user "rails" working_directory rails_directory exec_start "/usr/local/bin/bundle#{ruby_version} exec rake jobs:work"