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.
- Host: GitHub
- URL: https://github.com/dougal/daemon_generator
- Owner: dougal
- Created: 2008-04-10T10:26:19.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2010-08-11T16:14:47.000Z (about 15 years ago)
- Last Synced: 2025-04-28T10:25:08.413Z (6 months ago)
- Language: Ruby
- Homepage: http://douglasfshearer.com/blog/cron-jobs-in-ruby-on-rails
- Size: 122 KB
- Stars: 96
- Watchers: 3
- Forks: 25
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Daemon Generator
================To get yourself rolling:
> sudo gem install daemons
> ./script/generate daemonThen 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]