From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1264 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 run script Date: Fri, 6 Oct 2006 10:27:42 -0400 (EDT) Message-ID: References: <20061001092939.GA1057@heinlein.local> <20061005235825.GB7053@home.power> <20061006061250.GR14735@annvix.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1160145063 32020 80.91.229.2 (6 Oct 2006 14:31:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 14:31:03 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1500-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 16:30:59 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GVqg9-0000m9-T4 for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 16:27:57 +0200 Original-Received: (qmail 16733 invoked by uid 76); 6 Oct 2006 14:28:18 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 16727 invoked from network); 6 Oct 2006 14:28:18 -0000 X-Spam-Status: No, hits=-1.4 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: charlieb.ott.istop.com X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: Vincent Danen In-Reply-To: <20061006061250.GR14735@annvix.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1264 Archived-At: On Fri, 6 Oct 2006, Vincent Danen wrote: > * Alex Efros [2006-10-06 02:58:25 +0300]: > >> On Sun, Oct 01, 2006 at 11:29:40AM +0200, Mark wrote: >>> #!/bin/sh >>> exec 2>&1 >>> exec /command/chpst -P /usr/local/apache2/bin/httpd -DNO_DETACH >> >> Hmm. I'm using Gentoo, and maybe it add some custom patches for apache >> related to this issue, not sure. But AFAIK -DNO_DETACH is enough and no >> process group hack needed anymore. My exec line in run script is: >> >> exec env -i PATH=$PATH apache2 -DNO_DETACH -k start -DSSL >> >> Gentoo's package name is: net-www/apache-2.0.58-r2. > > This is what I'm using in Annvix: > > http://svn.annvix.org/cgi-bin/viewcvs.cgi/releases/2.0-CURRENT/httpd-conf/SOURCES/httpd.run?root=packages&view=markup > > It's a little long to paste in here because we do some auto-detection > and definitions of modules for the way our configuration file is laid > out, but we haven't needed to use chpst with httpd, and we also use > -DNO_DETACH. I think that "chpst -P .... -D FOREGROUND" is equivalent to "... -D NO_DETACH" http://mail-archives.apache.org/mod_mbox/httpd-cvs/200204.mbox/%3C20020405001814.86519.qmail@icarus.apache.org%3E ... + *) worker and prefork MPMs: Add -DFOREGROUND switch to cause the + Apache parent process to run in the foreground (similar to -DNO_DETACH + except that it doesn't switch session ids). [Jeff Trawick] ...