New apache2 rc.conf start syntax check

Kent Stewart kstewart at owt.com
Sat Jun 5 13:33:57 PDT 2004


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


More information about the freebsd-questions mailing list