From: LAMBEAU Bernard Date: 2009-01-09T19:36:34+09:00 Subject: Re: Detect when a Ruby program exits Your are probably looking for Kernel::at_exit blambeau On Fri, Jan 9, 2009 at 11:28 AM, James Coglan wrote: > Hi all, > > Is there a way to have your code notified when a Ruby process is terminated? > I'm looking for a way to serialize a bunch of in-memory data to disk > automatically when a Rails app is shut down. I might be better off storing > it in SQLite but would like to know if the in-memory option is possible > first. > > Thanks, > James > http://github.com/jcoglan >