A plugin for creating psuedo-scheduled jobs in Ruby on Rails.
Switch branches/tags
Nothing to show
Latest commit 675c2c4 Jul 7, 2010 @kozy kozy committed with dougal Works for Rails 3 now
Failed to load latest commit information.
lib Works for Rails 3 now Aug 11, 2010
README Initial commit. Apr 10, 2008
install.rb Initial commit. Apr 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]