Randy Kobes wrote:
On Fri, 10 Oct 2003, Steve Hay wrote:

[ ... ]

I don't know how to do the "graceful" stop, though.  What
we want is a bit like trying TERM then KILL on Unix, but
that doesn't work on Win32 -- see the entry for kill() in
the perlport manpage!  Win32::Process doesn't have any
"graceful" kill options either, and the "apache.exe -k
stop" command-line that I mentioned above only relates to
installed Apache2 *services*, not processes started from a
command shell.  Any ideas, Randy?


At one point I had played around with using a service to get
around this problem - have Apache::Test install a temporary
service, then use "Apache -k start" / "Apache -k stop" to
start / stop the server. While this does things gracefully,
so that the pid file is removed, I think there may be some
problems with some users not having the right permissions
to install a service.

Also don't forget that Apache -k won't work in apache-1.3, which A::T needs to support.


[...]

I'm fine with whatever is needed on the win32 side. We probably need to do a similar thing on non-win32, as we get the stale pid file as well. Though whatever you do, please test that it still works with apache-1.3. An easy way to test is to run the httpd-test/perl-framework/ test suite (httpd-test is yet another cvs rep). It works with httpd-2.0 and apache-1.3. Hopefully one day someone will port mp1's test suite to use A::T, so we will have one of our own in the 1.3 land.


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to