Received: by taz.hyperreal.com (8.7.5/V2.0) id NAA25432; Mon, 30 Sep 1996 13:47:21 -0700 (PDT) Received: from fully.organic.com by taz.hyperreal.com (8.7.5/V2.0) with ESMTP id NAA25426; Mon, 30 Sep 1996 13:47:18 -0700 (PDT) Received: from localhost (brian@localhost) by fully.organic.com (8.7.6/8.6.12) with SMTP id UAA10810 for ; Mon, 30 Sep 1996 20:52:30 GMT X-Authentication-Warning: fully.organic.com: brian owned process doing -bs Date: Mon, 30 Sep 1996 13:52:30 -0700 (PDT) From: Brian Behlendorf To: Apache List Subject: Re: apache exit status In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com On 30 Sep 1996, Tom Tromey wrote: > Right now Apache will exit with status 1 in response to the -v and -h > options. I think it should instead exit with status 0 here. These > exits are not errors, but are simply informational. > > Also, in a script it is convenient to be able to check for Apache by > trying the -v option and bombing on failure: > > httpd -v > /dev/null 2>&1 || { > echo "nope"; exit 1 > } +1. This is small enough I think committing it should be uncontroversial... Brian --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- brian@organic.com www.apache.org hyperreal.com http://www.organic.com/JOBS