Here is what I have in my enviornment.rb. I understand there have been issues with restarting because of a bug in the "daemons" gem and that the ghazel-daemons fixes it. But its not working in my case. I am using the collectiveidea 2.1.0--pre version of DJ, rails 2.3.5.
config.gem 'delayed_job', :source => 'http://rubygems.org', :version
=> "2.1.0.pre"
config.gem "ghazel-daemons", :lib => "daemons", :source => 'http://
gems.github.com'
gem "ghazel-daemons"
require "daemons"
But I stil can't get delayed_job to restart from capistrano.
desc "Restart the delayed_job process"
task :delayed_job_restart, :roles => :app do
run "cd #{current_path};#{get_rails_env} script/delayed_job
restart"
end
Thanks