Sha256: 0cb8f50a7047cb0191f8e0cf782db177c4bfb7e8716ed9ad364ea5cdc49ded47
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
# # Cookbook Name:: delayed_job # Recipe:: restart # # This recipe will setup `delayed_job` on a Solo instance environment or on named Utility instances in a cluster environment. # Name your Utility instances with prefixes: `dj`, `delayed_job`, `delayedjob`. For example, `dj1`, `delayedjob4`. if node[:instance_role] == "solo" || node[:instance_role] == "eylocal" || (node[:instance_role] == "util" && node[:name] =~ /^(dj|delayed_job|delayedjob)/) delayed_job_applications().each do |app_name,data| execute "monit-reload-restart" do command "sleep 30 && monit reload && monit restart all -g dj_#{app_name}" action :run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eycloud-recipe-delayed_job-1.0.1 | recipes/restart.rb |
eycloud-recipe-delayed_job-1.0 | recipes/restart.rb |