1. Start and stop Delayed::Workers with daemonizer

    Monday 8th of November, 2010 at 11:11am Permalink.

    Delayed::Job comes out of the box with a startup script that relies on the daemons gem. to start and stop worker processes.  Problem is, I’ve never actually had it work. After browsing around my options I decided to give daemonizer a go.  The main advantage I saw to daemonizer is that you simply define a single “Daemonfile” in your project’s root (similar to a Gemfile or Rakefile) explaining how to set up each processes environment.

    My Daemonfile looks like this:

    The only minor problem I had was with daemonizer’s gem dependencies clashing with my apps.  I have submitted a patch to make sure that daemonizer uses bundle if the project has a Gemfile present.

  2. blog comments powered by Disqus

Archive