From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1265 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:30:12 -0400 (EDT) Message-ID: References: <20061001092939.GA1057@heinlein.local> <20061005235825.GB7053@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1160145116 32229 80.91.229.2 (6 Oct 2006 14:31:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 14:31:56 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1501-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 16:31:55 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 1GVqiU-0001Sm-1A for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 16:30:22 +0200 Original-Received: (qmail 16942 invoked by uid 76); 6 Oct 2006 14:30:43 -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 16936 invoked from network); 6 Oct 2006 14:30:43 -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: Alex Efros In-Reply-To: <20061005235825.GB7053@home.power> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1265 Archived-At: On Fri, 6 Oct 2006, Alex Efros wrote: > 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 As a matter of interest, why do you do "env -i PATH=$PATH"? One of the things that runit gives you is a guaranteed consistent environment, inherited from runsvdir. Do you have "env -i ..." in all your run scripts?