On Mon, Jul 18, 2005 at 08:35:21PM -0400, Dossy Shiobara wrote:

> I've filed RFE #1029889 that will introduce [ns_info shutdownpending] so

>     http://aolserver.com/sf/rfe/1029889

Well, that sounds like a good idea, but can't you do that already with
ns_atshutdown if you need to?  I've used code like this:


# This runs at AOLserver startup:
if { ![nsv_exists . shutdown_pending] } { 
   # Got this idea from Rob Mayoff here: 
   #   http://www.arsdigita.com/bboard/q-and-a-fetch-msg?msg%5fid=000Yky 
   nsv_set . shutdown_pending 0 
   ns_atshutdown {atp_shutdown} 
} 

ad_proc atp_shutdown {} { 
} { 
   nsv_set . shutdown_pending 1 
   # Do more custom shutdown stuff here.
} 

-- 
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com/


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to