RAILS_ROOT = "/path/to/rails_root" RAILS_ENV = "production" 3.times do |num| God.watch do |w| w.name = "delayed_job-#{num}" w.pid_file = "#{RAILS_ROOT}/tmp/pids/delayed_job.#{num}.pid" w.start = "cd #{RAILS_ROOT} && script/delayed_job --environment=#{RAILS_ENV} --identifier=#{num} start" w.restart = "kill -TERM `cat #{RAILS_ROOT}/tmp/pids/delayed_job.#{num}.pid`" w.stop = "cd #{RAILS_ROOT} && scri