On 08/28/12 06:34, Wesley wrote:
> Hi,
> 
> I use OpenBSD 5.1 RELEASE.
> To start Apache, i usually use this command : '/usr/sbin/apachectl 
> start'
> This, works good.
> 
> Therefore, i tried to do the same using : '/etc/rc.d/httpd start'
> Nothing happens. What is the use of this last one ?
> 
> Thank you very much for your reply.
> 
> Cheers,
> 
> Wesley
> 


# /etc/rc.d/httpd start
#

That's what you did, right?  Problem is, the startup scripts
are..uh..startup scripts.  They run things if they are configured to run
as they are configured to run.  i.e., every time your system boots,
"/etc/rc.d/httpd start" is run.  But what if your machine, like mine
there, wasn't configured to run httpd at boot?  In that case, it
shouldn't start when you do that...and that's what happens.

So...configure httpd to start:

# echo 'httpd_flags=""' >>/etc/rc.conf.local

and try again:

# /etc/rc.d/httpd start
httpd(ok)
#

ta-da!

Curiously, this exact example is in the FAQ:
http://www.openbsd.org/faq/faq10.html#rc


Nick.

Reply via email to