title: Can't start the delayed_jobs process
body: <p>I am having problems getting delayed_job to restart.</p>
  
  <p>When I login and run rake <code>delayed_job RAILS_ENV=production</code> everything works fine and all the jobs are processed, however if run <code>RAILS_ENV=production script/delayed_job restart</code> a new process is started, but none of the jobs are processed.</p>
  
  <p><strong>Update</strong>: I should also mention that I can run both of the above commands on my dev machine and in both cases all the delayed jobs are processed properly.</p>
  
  <p><strong>Update</strong>: I removed the previous update since it was in regards to running the script from my machine, but since I can't get delayed_jobs to process the tasks when calling the command on the server, there is no use in making things even more complex.</p>
  
  <p><strong>Update</strong>: Earlier I mentioned that running <code>RAILS_ENV=production script/delayed_job restart</code> started a process, but didn't do any processing.  It turns out that, even though a pid is displayed after running the command, no process matches the pid or is there any additional ruby processes running. Below is the content of the script/delayed_job file:</p>
  
  <pre><code>#!/usr/bin/env ruby
  
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
  require 'delayed/command'
  Delayed::Command.new(ARGV).daemonize
  </code></pre>
  
  <p>I am using delayed_jobs v2.0.4</p>