views:

84

answers:

1

I'm using mailman gem for fetching email from pop3 server and send it to Rails application. What should I do to make mailman be as daemon? Please, tell me easiest way to do it.

May be whenever gem can help? Something like:

  every :reboot do

    command "cd /home/rails/root && ruby bin/mailman_fetcher.rb"

  end
+1  A: 

Take a look at Daemons, http://daemons.rubyforge.org/

Daniel Schierbeck