Re: Stop server

2011-04-09 Thread Ignaz Birnstingl
Hello, I start a thread during the post_config which checks the state of the hardware machine. If something goes wrong, this thread has to stop the Apache server. Is it possible ? For now, I am only able to kill the root process and I have to duplicate this thread on each child in order to l

RE: Stop server

2011-04-07 Thread Niko Goutte
Hi, I found a way to stop the server with the following command inside my module: system("/usr/sbin/httpd -k stop"); And it works. --Nicolas. > Date: Thu, 7 Apr 2011 10:53:56 +0200 > From: massimo.man...@unipr.it > To: modules-dev@httpd.apache.org > CC: ngou...@hotmail.c

Re: Stop server

2011-04-07 Thread Massimo Manghi
what if the hardware checking thread is in a process external to Apache and, if needed, runs a orderly shutdown of the webserver by running a shell procedure? This would leave the option for automatically restarting the webserver in case of a transitory hardware problem. -- Massimo On 04/0

RE: Stop server

2011-04-07 Thread Niko Goutte
In fact, I am not able to kill all the processes from the post_config. I can only kill the current pid but I want to kill also all the children. Do you know how to do this ? Thank you. > From: ngou...@hotmail.com > To: modules-dev@httpd.apache.org > Subject: Stop server > Date: Wed, 6 Apr 2011 1