An open API service indexing awesome lists of open source software.

https://github.com/dougal/daemon_generator

A plugin for creating psuedo-scheduled jobs in Ruby on Rails.
https://github.com/dougal/daemon_generator

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

Daemon Generator
================

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

Then insert your code in the lib/daemons/.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/_ctl [start|stop|restart]

App-wide control script (I add this to my capistrano recipe's after_restart task):
> ./script/daemons [start|stop|restart]