From owner-freebsd-ports@FreeBSD.ORG Thu Dec 16 09:54:46 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F211D16A4CE for ; Thu, 16 Dec 2004 09:54:46 +0000 (GMT) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 84B5743D41 for ; Thu, 16 Dec 2004 09:54:45 +0000 (GMT) (envelope-from clement@FreeBSD.org) Received: (qmail 58378 invoked by uid 89); 16 Dec 2004 10:54:43 +0100 Received: from clement@FreeBSD.org by goofy.cultdeadsheep.org by uid 89 with qmail-scanner-1.22 (clamdscan: 0.74. spamassassin: 2.63. Clear:RC:1(192.168.0.8):. Processed in 0.180824 secs); 16 Dec 2004 09:54:43 -0000 X-Qmail-Scanner-Mail-From: clement@FreeBSD.org via goofy.cultdeadsheep.org X-Qmail-Scanner: 1.22 (Clear:RC:1(192.168.0.8):. Processed in 0.180824 secs) Received: from unknown (HELO persephone.cultdeadsheep.org) (192.168.0.8) by goofy.cultdeadsheep.org with SMTP; 16 Dec 2004 10:54:42 +0100 Received: (qmail 42703 invoked from network); 16 Dec 2004 10:53:58 +0100 Received: from unknown (HELO localhost) (217.128.192.173) by persephone.cultdeadsheep.org with SMTP; 16 Dec 2004 10:53:58 +0100 Date: Thu, 16 Dec 2004 10:54:27 +0100 From: Clement Laforet To: Jean-Baptiste Quenot Message-Id: <20041216105427.594685df.clement@FreeBSD.org> In-Reply-To: <20041216092506.GA44964@vision.anyware> References: <20041216092506.GA44964@vision.anyware> Organization: FreeBSD Project X-Mailer: Sylpheed version 1.0.0beta1 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Thu__16_Dec_2004_10_54_27_+0100_D3sywSR.AK_Gt+I8" cc: ports@freebsd.org Subject: Re: www/apache2 rc startup script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 09:54:47 -0000 --Signature=_Thu__16_Dec_2004_10_54_27_+0100_D3sywSR.AK_Gt+I8 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Thu, 16 Dec 2004 10:25:09 +0100 Jean-Baptiste Quenot wrote: > Dear ports, > > There is a problem with the Apache 2 port: the rc script > in $PREFIX/etc/rc.d does not source the envvars stored in > $PREFIX/sbin. When Apache is run with apachectl(1), this file is > sourced, but when Apache is started with the rc script, apachectl > is not invoked thus envvars is not sourced. Please read the ${PREFIX}/etc/rc.d/apache2.sh script. envvars is "sourced" in apache2_precmd() > Is it possible to replace command="/usr/local/sbin/httpd" with > command="/usr/local/sbin/apachectl" in the rc script? If not, is > it possible to source envvars? I won't use apachectl for various reasons. > I use the envvars script to set Apache's umask. I've just test setting umask in envvars. I've restarted apache2 in the rc way, launch a simple CGI script which prints umask value. It works fine. Can you please give us more details? which is the output of "ident ${PREFIX}/etc/rc.d/apache2.sh" ? clem --Signature=_Thu__16_Dec_2004_10_54_27_+0100_D3sywSR.AK_Gt+I8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBwVtXsRhfjwcjuh0RAs9UAKDe1HIW3ETZdaU5y6Xb4wAOQ8I68ACg1Y+d /ORULZ+y5RaYgDggKvmFrqw= =n79J -----END PGP SIGNATURE----- --Signature=_Thu__16_Dec_2004_10_54_27_+0100_D3sywSR.AK_Gt+I8--