tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc RC scripts



On Mon, 5 Oct 2009 08:46:20 -0500 (CDT)
"Jeremy C. Reed" <reed%reedmedia.net@localhost> wrote:

> On Sat, 3 Oct 2009, Joerg Sonnenberger wrote:
> 
> > (2) Provide a default value of NO for the control variables. This
> > ensures that no stupid "Missing variable $foo" clutters up the boot
> > messages.
> 
> Am I the only one that appreciates these messages? It seems like a 
> simple reminder that I have a rc.d script that I should consider
> looking at.
> 
I agree.  If I mistype the variable name for package foobar:

        FOOVAR=YES

it will silently fail to start.

Does it check now to see if it's "YES" or "NO"?  If not, it should.


Home | Main Index | Thread Index | Old Index