I'm trying to create a win32-service (ruby script with Rails
environment) utilizing the Daemon class and it currently prematurely
exits when it encounters a method of mine that calls a delivery via
Here is the process:
Windows Service (Ruby script Daemon class)
MyModel.save (from within the Ruby script via requiring the Rails
This causes my Daemon to exit. Has anyone tried anything similar? I've
tried breaking the MyModel.save off onto another thread with no luck.
I don't know if the problem is the time required to deliver the message
or if it's because ActionMailer uses its own Daemon.
Anyone have any thoughts?