Date: Thu, 16 Dec 2004 10:54:27 +0100 From: Clement Laforet <clement@FreeBSD.org> To: Jean-Baptiste Quenot <jb.quenot@caraldi.com> Cc: ports@freebsd.org Subject: Re: www/apache2 rc startup script Message-ID: <20041216105427.594685df.clement@FreeBSD.org> In-Reply-To: <20041216092506.GA44964@vision.anyware> References: <20041216092506.GA44964@vision.anyware>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <jb.quenot@caraldi.com> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041216105427.594685df.clement>