title: How do you run multiple DelayedJob workers on a single Heroku dyno?
body: <p>I am having trouble getting my dynos to run multiple delayed job worker processes.</p>
  
  <p>My Procfile looks like this:</p>
  
  <pre><code>worker: bundle exec script/delayed_job -n 3 start
  </code></pre>
  
  <p>and my <code>delayed_job</code> script is the default provided by the gem:</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>When I try to run this either locally or on a Heroku dyno it exits silently and I can't tell what is going on.</p>
  
  <pre><code>foreman start
  16:09:09 worker.1 | started with pid 75417
  16:09:15 worker.1 | exited with code 0
  16:09:15 system   | sending SIGTERM to all processes
  SIGTERM received
  </code></pre>
  
  <p>Any help with either how to debug the issue or suggestions about other ways to go about running multiple workers on a single dyno it would be greatly appreciated.</p>