I'm developing a rails 2 app with a custom database for persistence
(not activerecord, not sql). I need to open the database once at
application startup and close it once at application shutdown. I
figured out how to add an application startup hook by putting a script
in config/initializers. I can't figure out how to add a shutdown
hook. Can someone point me in the right direction? I really need to
close the database properly at shutdown time.
Thanks a bunch!