The following reply was made to PR mod_jserv/5117; it has been noted by GNATS.
From: Peter Santoro <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: Subject: Re: mod_jserv/5117: Servlet's destroy method does not appear to be called on server restart or stop Date: Sun, 10 Oct 1999 11:46:00 -0400 With full jserv logging turned on, the last messages printed from mod_jserv are as follows during a server stop or restart: ... jserv_watchdog:(...) watchdog_cleanup() ... Apache Module was cleaned-up I'm not an expert in mod_jserv and its source code, but it appears that the problem is related to mod_jserv's load balancing logic and/or an improper configuration on my part. Adding additional log statements to jserv_watchdog.c revealed that cfg->shmfile was null inside watchdog_cleanup() causing it to return without doing anything -- further suggesting that ApJServShmFile was not set in the config file (which it was not). Although, LOAD_BALANCE is #defined in jserv.h by default, no load balancing statements appear in my jserv config files. (BTW, when I attempted to comment out the #define LOAD_BALANCE statement in jserv.h and rebuild, I got compile errors. I believe jserv_cfg_shmfile() in mod_jserv.c needs to be wrapped using #ifdef LOAD_BALANCE ... #endif preprocessor statements.)