Forum: Ruby Detect when a Ruby program exits

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
James C. (Guest)
on 2009-01-09 12:28
(Received via mailing list)
Hi all,

Is there a way to have your code notified when a Ruby process is
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
it in SQLite but would like to know if the in-memory option is possible

LAMBEAU Bernard (Guest)
on 2009-01-09 12:37
(Received via mailing list)
Your are probably looking for Kernel::at_exit

James C. (Guest)
on 2009-01-09 12:50
(Received via mailing list)
2009/1/9 LAMBEAU Bernard <removed_email_address@domain.invalid>

> Your are probably looking for Kernel::at_exit

Fantastic, just what I needed. Thanks!
This topic is locked and can not be replied to.