Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A plugin for creating psuedo-scheduled jobs in Ruby on Rails.

branch: master

Works for Rails 3 now

latest commit 675c2c46c0
kozy authored July 07, 2010 dougal committed August 12, 2010
Octocat-spinner-32 lib Works for Rails 3 now August 12, 2010
Octocat-spinner-32 README Initial commit. April 10, 2008
Octocat-spinner-32 install.rb Initial commit. April 10, 2008
Daemon Generator

To get yourself rolling:
> sudo gem install daemons
> ./script/generate daemon <name>

Then insert your code in the lib/daemons/<name>.rb stub. All pid's and logs will live in the normal log/ folder.  This helps to make things Capistrano friendly.

Individual control script:
> ./lib/daemons/<name>_ctl [start|stop|restart]

App-wide control script (I add this to my capistrano recipe's after_restart task):
> ./script/daemons [start|stop|restart]
Something went wrong with that request. Please try again.