Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Michael Moen
Trap exit of my script [ reply ]  
2006-07-19 22:47
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.