Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jun 2004 13:33:49 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        freebsd-questions@freebsd.org
Cc:        Stacey Roberts <stacey@vickiandstacey.com>
Subject:   Re: New apache2 rc.conf start syntax check
Message-ID:  <200406051333.50004.kstewart@owt.com>
In-Reply-To: <20040605201641.GF392@crom.vickiandstacey.com>
References:  <20040605201641.GF392@crom.vickiandstacey.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 05 June 2004 01:16 pm, Stacey Roberts wrote:
> Hello,
>      Sorry if this is a straight-forward case, but I just wanted to
> double-check the syntax for the new apache2 start syntax that's to be
> added to /etc/rc.conf.
>
> The pkg-message reads:
>
> # Add the following lines to /etc/rc.conf to enable apache2:
> # apache2_enable (bool):      Set to "NO" by default.
> #                             Set it to "YES" to enable apache2
> # apache2ssl_enable (bool):   Set to "NO" by default.
> #                             Set it to "YES" to start apache with
> SSL #                             (if <IfDefined SSL> exists in
> httpd.conf) # apache2limits_enable (bool):Set to "NO" by default.
> #                             Set it to yes to run `limits
> $limits_args` #                             just before apache
> starts.
> # apache2_flags (str):        Set to "" by default.
> #                             Extra flags passed to start command
>
> Now following from what's normally used for /etc/rc.conf, its
> reasonable to me that the syntax should be along the lines of:
>
> apache2_enable="YES"
>
> But reading the apache2 pkg-message, there's no mention of the use of
> the "=" for the apache2_enable statement. Is the "=" required or not?
> If it is, then shouldn't the examples in pkg-message include a
> reference to using the "=" before the bool selection?
>


If you do a "man rc.conf", you will see that for (bool), you have to set 
'=YES"' or '="NO"'.

Since you have to stop apache and restart it, you could have done a 
"shutdown now" and watch it come up the new way.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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