Forum OpenACS Q&A: is there a hook in nsd for cleanup before exiting?

I want to try some aggressive caching on the nsd side so pg isn't
getting hammered constantly with updates...  is there a way for me to
tell nsd "run this proc when you get a SIGTERM" so I can do a cache
flush before restarting?
check out ns_atshutdown
exactly what I need, thanks!