tags:

views:

23

answers:

0

hi,

I have created my first ruby daemon and it functions fine for about a day but then it stops functioning but it still appears in the /var/run folder.

here is my control code -

require 'rubygems'
require 'daemons'
dir = File.dirname(__FILE__)
options = {
 :app_name => "rk_mail",
 :dir_mode => :system,
 :backtrace  => true,
 :log_output => true,
 :monitor    => true
}
Daemons.run(dir + '/mail_receiver.rb', options)

I have checked the logs but they dont show any errors

Thanks, alex