Re: documentation about flags for pkg_scripts

2015-12-14 Thread Marko Cupać
On Mon, 14 Dec 2015 10:57:51 +0100
Antoine Jacoutot  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/



Re: documentation about flags for pkg_scripts

2015-12-14 Thread Antoine Jacoutot
On Mon, Dec 14, 2015 at 10:50:26AM +0100, Marko Cupać wrote:
> Hi,
> 
> I found out from bits and pieces on the 'net that I can use flags for
> pkg_scripts in rc.conf.local, and I also found out by trial and error
> that flags declared in rc.conf.local seem to replace ones
> in /etc/rc.d/ (at least for isc_named).
> 
> 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?

-- 
Antoine



documentation about flags for pkg_scripts

2015-12-14 Thread Marko Cupać
Hi,

I found out from bits and pieces on the 'net that I can use flags for
pkg_scripts in rc.conf.local, and I also found out by trial and error
that flags declared in rc.conf.local seem to replace ones
in /etc/rc.d/ (at least for isc_named).

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

Regards,
--
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

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