Search code examples
ruby-on-railsrubymailmanwhenever

Ruby: How to demonize MailMan (incoming mail processing microframework)


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

Solution

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