From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1261 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 run script Date: Fri, 6 Oct 2006 02:58:25 +0300 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061005235825.GB7053@home.power> References: <20061001092939.GA1057@heinlein.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160092704 10989 80.91.229.2 (5 Oct 2006 23:58:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 23:58:24 +0000 (UTC) Original-X-From: supervision-return-1497-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 01:58:23 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 1GVd6Y-0008PK-Ax for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 01:58:18 +0200 Original-Received: (qmail 20819 invoked by uid 76); 5 Oct 2006 23:58:39 -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 20813 invoked from network); 5 Oct 2006 23:58:39 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061001092939.GA1057@heinlein.local> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1261 Archived-At: Hi! 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. -- WBR, Alex.