On Wed, Dec 15, 2010 at 1:46 PM, Jonas <[email protected]> wrote:
> For people playing around with the daemons gem, this is the equivalent
> of setting the :ontop option to true. (http://daemons.rubyforge.org/
> classes/Daemons.html#M000004)
I suggest not using the Daemons gem at all. Here's a hello-world
eventmachine daemon running via the DJ convention in your Rakefile:
task 'jobs:work' do
require 'eventmachine'
EM.run do
EM.add_periodic_timer(1) do
puts "Tick! #{Time.now}"
end
end
end
Dustin Sallings, one of the authors of memcached, put it beautifully
when he said: "Self-daemonizing programs start you down the path to
hell.". See:
http://dustin.github.com/2010/02/28/running-processes.html
Adam
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.