From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1263 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: apache2 run script Date: Fri, 6 Oct 2006 00:12:50 -0600 Organization: Annvix Message-ID: <20061006061250.GR14735@annvix.org> References: <20061001092939.GA1057@heinlein.local> <20061005235825.GB7053@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QqzFzR/RUlLahzby" X-Trace: sea.gmane.org 1160115215 29137 80.91.229.2 (6 Oct 2006 06:13:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 06:13:35 +0000 (UTC) Original-X-From: supervision-return-1499-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Oct 06 08:13:28 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 1GVixb-0003z4-2l for gcsg-supervision@gmane.org; Fri, 06 Oct 2006 08:13:27 +0200 Original-Received: (qmail 32642 invoked by uid 76); 6 Oct 2006 06:13:48 -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 32634 invoked from network); 6 Oct 2006 06:13:47 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061005235825.GB7053@home.power> X-Mailer: Mutt 1.5.x/OS X 10.4.x X-PGP-Key: http://linsec.ca/vdanen.asc X-URL: http://annvix.org/ User-Agent: Mutt/1.5.10i X-SA-Exim-Connect-IP: 68.149.37.7 X-SA-Exim-Mail-From: vdanen@annvix.org X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on hades.annvix.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-SA-Exim-Version: 4.2 (built Wed, 01 Feb 2006 18:29:36 -0700) X-SA-Exim-Scanned: Yes (on hades.annvix.org) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1263 Archived-At: --QqzFzR/RUlLahzby Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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 >=20 > 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: >=20 > exec env -i PATH=3D$PATH apache2 -DNO_DETACH -k start -DSSL >=20 > 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/S= OURCES/httpd.run?root=3Dpackages&view=3Dmarkup 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. --=20 {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4} mysql> SELECT * FROM users WHERE clue > 0; Empty set (0.00sec) --QqzFzR/RUlLahzby Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFJfPiLrxeMv7jCtQRAt/JAJ9e7YVbef0dQEuoK1gHeel/SBELuQCfTurA 9S4slf6Ba48BQy02SiectLw= =cpIY -----END PGP SIGNATURE----- --QqzFzR/RUlLahzby--