httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Atkins <m...@degeneration.co.uk>
Subject [users@httpd] Re: Controlling Apache Win32 as a Console App
Date Mon, 10 Oct 2005 09:31:36 GMT
Joost de Heer wrote:
>>If you want to script this, get something like ptree (from the resource
>>kit) or pskill (from sysinternals) to kill the process.
> 
> 
> I just remembered that ptree requires a service to be installed, so drop
> that option. pskill is what you want.
> 

Thanks for the advice. That seems to work just fine.

I also wrote a small, quick and dirty Win32 console app which waits for 
the console to be closed and then runs a second process, allowing both 
mySQL and Apache to run in the same console and both be shut down 
properly when the window is closed. I've attached the source code in 
case anyone else tries to do the same kind of thing as I have tried. In 
my setup, runonclose is called with a cmd script as its parameter.

All the best,
-Martin



Mime
View raw message