The mail jobs are affected by a ruby 3 compatibility issue in
the DelayedJob gem:
https://github.com/collectiveidea/delayed_job/issues/1134
-service "rails-jobs@mailers" do
- action [:enable, :start]
- supports :restart => true
- subscribes :restart, "rails_port[www.openstreetmap.org]"
- subscribes :restart, "systemd_service[rails-jobs]"
+if node[:lsb][:release].to_f < 22.04
+ service "rails-jobs@mailers" do
+ action [:enable, :start]
+ supports :restart => true
+ subscribes :restart, "rails_port[www.openstreetmap.org]"
+ subscribes :restart, "systemd_service[rails-jobs]"
+ end
+else
+ service "rails-jobs@mailers" do
+ action [:disable, :stop]
+ end
end
service "rails-jobs@storage" do
end
service "rails-jobs@storage" do