]> git.openstreetmap.org Git - chef.git/commitdiff
Stop rails-jobs service when cleaning up old APIs
authorTom Hughes <tom@compton.nu>
Wed, 9 Mar 2022 19:23:56 +0000 (19:23 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 9 Mar 2022 19:23:56 +0000 (19:23 +0000)
cookbooks/dev/recipes/default.rb

index d7d88656a688ca6b995ad7d1d0a5e7d4f4b6f14b..4b539e9c8c4ec1c4202bf2d9c8223e1754ed83c4 100644 (file)
@@ -438,6 +438,10 @@ if node[:postgresql][:clusters][:"14/main"]
         action :delete
       end
 
+      service "rails-jobs@#{name}" do
+        action [:stop, :disable]
+      end
+
       directory site_directory do
         action :delete
         recursive true