www/apache2 rc startup script

Clement Laforet clement at FreeBSD.org
Thu Dec 16 01:54:47 PST 2004


On Thu, 16 Dec 2004 10:25:09 +0100
Jean-Baptiste Quenot <jb.quenot at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20041216/7bddbc74/attachment.bin


More information about the freebsd-ports mailing list