WARNING: $xyz is not set properly - see rc.conf(5).

RW rwmaillists at googlemail.com
Mon Mar 14 16:52:17 UTC 2016


On Mon, 14 Mar 2016 00:47:57 +1100 (EST)
Ian Smith wrote:

> Re: freebsd-questions Digest, Vol 614, Issue 8, Message: 3
> On Sun, 13 Mar 2016 17:22:39 +1100 andrew clarke <mail at ozzmosis.com>
> wrote:
> 
>  > I notice on FreeBSD 10.2-REL (also 10.3-RC2), executing:
>  > 
>  > service -e
>  > 
>  > results in the following appended to /var/log/messages:
>  > 
>  > Mar 13 17:09:57 blizzard ozzmosis: /usr/sbin/service: WARNING:
>  > $growfs_enable is not set properly - see rc.conf(5). 
> 
> Indeed.  Just to check for a regression, I ran the same on stable/9 
> (October). Most of these are enabled in /etc/defaults/rc.conf, and
> everything specifically enabled in rc.conf is there: (*)

I'm not sure what you are saying here, but what I'm seeing is that the
warnings are about scripts that don't have a default enable setting in
either rc.conf or defaults/rc.conf.

What seems to be happening is that service doesn't actually load the
scripts, it runs 

load_rc_config 'XXX' 

(XXX being a dummy value)

which pulls in rc.conf and defaults/rc.conf. It then greps for rcvar
and name in the scripts without actually sourcing them. That means it
can't pick-up any defaults defined in those scripts, including the
*_enable defaults set in /usr/local/etc/rc.d/*

The error from growfs (in /etc/rc.d) is because it doesn't have an entry
in defaults/rc.conf


More information about the freebsd-questions mailing list