Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 17:31:25 +0800
From:      Xu Qiang <Qiang.Xu@fujixerox.com>
To:        freebsd-questions@freebsd.org
Subject:   RE: Apache 1.3.33 auto start in FreeBSD 5.3?
Message-ID:  <20050628092028.1A6FE1D92E@imss.sgp.fujixerox.com>

index | next in thread | raw e-mail

Xu Qiang wrote:
> I compiled Apache 1.3.33 from src in my FreeBSD 5.3 machine. It works
> well. However, I want to let it run at the start-up time of the
> system.  
> 
> I added the line apache_enable="YES" into /etc/rc.conf as
> /usr/ports/www/apache13/pkg-message said, and copied
> /usr/ports/www/apache13/files/apache.sh into /usr/local/etc/rc.d, and
> modified the line command="%%PREFIX%%/sbin/httpd" to
> command="%%PREFIX%%/apache/bin/httpd".    
> 
> But it still doesn't work.

When I manually go to /usr/etc/rc.d, and run the script by "./apache.sh", it told me: 
.: Can't open %%RC_SUBR%%: No such file or directory

Btw, I can't find the command "load_rc_config" and "run_rc_command" in my machine. :(

looking forward to help, 

Regards,
Xu Qiang




help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050628092028.1A6FE1D92E>