Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 98547 invoked from network); 8 Jul 2007 19:36:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2007 19:36:54 -0000 Received: (qmail 8502 invoked by uid 500); 8 Jul 2007 19:36:49 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 8447 invoked by uid 500); 8 Jul 2007 19:36:49 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 8436 invoked by uid 99); 8 Jul 2007 19:36:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jul 2007 12:36:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jul 2007 12:36:45 -0700 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 8D1502137 for ; Sun, 8 Jul 2007 20:36:23 +0100 (BST) Date: Sun, 8 Jul 2007 20:36:23 +0100 From: Nick Kew To: dev@httpd.apache.org Subject: Re: Apache Service Control Message-ID: <20070708203623.121b962d@grimnir> In-Reply-To: <46913924.2040604@list.za.net> References: <46913924.2040604@list.za.net> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sun, 08 Jul 2007 21:21:08 +0200 Q Beukes wrote: > Why is it controlled with signals? That is customary for daemons. It works. > To restart the process you need to send a HUP signal. This works fine, > but what if you want to stop the server for a moment and then start it > again, perhaps doing something in the mean while. This cannot be > automated unless you watch the process/PID in some way. You could send it SIGKILL and take the consequences. Not that I'd recommend that! There are various techniques you can use for scripting a shutdown: for example, polling it. > This is fine for most purposes, but what if you want to stop what > you're doing in case the shutdown fails. If the "httpd" binary would > return a non-negative exit code Return a code to whom? > These are just some issues people have. Some people feel it's a bad > design. Why? > Some people (like me) are not so sure what the idea behind it > is. To give the workers time to finish serving current requests rather than aborting them. We're open to patches if you have a better design. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/