Register a script to be run in response to a SIGHUP signal
ns_atsignal {script | procname ?args?}
ns_atsignal registers a Tcl script or procedure to be run in response to a SIGHUP signal.
proc dosomething blah { ns_log Notice "proc with arg '$blah'" } ns_atsignal dosomething $arg1