Date: Mon, 14 Mar 2016 16:52:12 +0000 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: WARNING: $xyz is not set properly - see rc.conf(5). Message-ID: <20160314165212.18eb9c61@gumby.homeunix.com> In-Reply-To: <20160313232411.J61428@sola.nimnet.asn.au> References: <mailman.109.1457870402.96823.freebsd-questions@freebsd.org> <20160313232411.J61428@sola.nimnet.asn.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160314165212.18eb9c61>