The daemon runs, but if i I access active record it blows up. The complete issue is outlined here: http://stackoverflow.com/questions/5441221/custom-daemon-with-rails-3