I need to be able to trap the exit of my script to do cleanup.
Signal.trap("TERM") prevents the script from even launching when launching as follows:
Daemons.run('mysqript.rb', options)
Is there a way I can do this, or do I need to find another method?
Thanks in advance.
|