Rufus Scheduler

Hello All,

I am using rufus-scheduler in rails application.
Rails - 3.2.8 & ruby - 1.9.3p194.

rufus-scheduler is working fine in development & production mode.
But, when i starting in daemon mode. It stops working.
cant figure out what is the issue.

code :-

require ‘rubygems’
require ‘rufus/scheduler’
scheduler = Rufus::Scheduler.start_new

scheduler.cron ‘9 11 * * *’ do
UserMailer.daily_message_report(“[email protected]”).deliver
end

Thanks,
Avi