> example. It starts up, and backgrounds, and then later, it parses its
> argument,
> figures it got a wrong parameter and exits.

I have a WIP diff to rc.d to fix buggy stuff like this.
But it's not ready yet.

> Then trying to add debug parameter to rc.conf.local, and see it
> not taking the debug parameter into account, because the cached
> values from /var/run/rc.d/... are used.
> It caused me a bit of head scratching before I found these cached values
> there.

It's all documented.

> I guess there might be other daemons that might expose such behaviour
> as well.
> Wondering why the cached parameters take precedence?

Because you want to be able to interact with your currently running daemon if
you happen to change the flags in rc.conf.local while it's still running.

-- 
Antoine

Reply via email to