On Mon, 14 Dec 2015 10:57:51 +0100
Antoine Jacoutot <[email protected]> wrote:

> > I can't find any official documentation about rc flags override in
> > man pages or in FAQ. Am I searching in wrong places?
>
> 'man rc.d' doesn't cover it?

Indeed it does, and it clearly states that (daemon_flags) "can be
_overridden_ by site-specific values provided in rc.conf.local".
(emphasis on overridden by me)

Also, description of daemon_flags says they are "additional arguments
to call the daemon with. These will be _appended_ to any mandatory
arguments already contained in the daemon variable defined in the
control script."
(emphasis on appended by me)



Now, looking back, when I know how it works, it all looks logical.
Let's take for example isc_named rc script:

daemon="/usr/local/sbin/named"
daemon_flags="-t /var/named -u _bind -U 4"

So we have daemon script, to which daemon_flags are _appended_.

Next, we can _override_ them in rc.conf.local:

pkg_scripts= isc_named
isc_named_flags="-4 -t /var/named -u _bind -U 4"

I guess a few lines in http://www.openbsd.org/faq/faq10.html#rc
regarding this would have saved me an hour or two :)

Sorry for the fuss and thanks.
--
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/

Reply via email to