From owner-freebsd-questions@freebsd.org Mon Mar 14 16:52:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08BC8AD0260 for ; Mon, 14 Mar 2016 16:52:17 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A801D1A5 for ; Mon, 14 Mar 2016 16:52:16 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x22c.google.com with SMTP id p65so111059803wmp.0 for ; Mon, 14 Mar 2016 09:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=YtiAHLeIhG5e4SMW/BR2Mkv32YTtPGB2XMg5Fd1ojeA=; b=T15vTAOLZdBMg/U5sRTmrv5zDJ5794v8BtaHXAOI75FnMuBZQ33j1lIzneDut7hYlV XZWUsoJeuujZBx1Sa9MNLQY5rGBWuOUy7/bLfnHS3F76yFaPVgr9oFPIWyLmAjmoEyH7 r+9ssHO9M95DXkPsvug+R7LK7FGLNfdVahQn3d6BYtBEWXJQXxncnIritWb9kZQYxBNq SvCzsFMXe4/8NQLEQinu99WxFYffjxorzg8bgPbLcdarO4gZEzJ1+d0FSYbFCG4PYDRu 53GZvJs17vz9GbBMz8YeDDkPe41gMj1qbDboLgrSH+xKAAPROtTOuZgI6Pgpb+286tou mZhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YtiAHLeIhG5e4SMW/BR2Mkv32YTtPGB2XMg5Fd1ojeA=; b=SLGS0ljbsVtqkXb1IAfDlf4xvgriuxBdNx/e0FMOvQfcKFEkQ/ESZCJCRSMsoq3wlH dg1Iaj1oSvN1nRxQ8HP9JjBvOVZevlJvFF6rVJZpt+CUv9jeHl2WhALMApoo7UxWUTuf QUxhw7uOmyVa1RI7qReFDx/Irjw9uK3KqwcIH3NmGHIiczJb+C1StQygvYjNhm098ZE7 JdJaW4Z8fsCUqNKd2AZ4TYfaSznPdknmHiBJcwEWyHm6xlcAzwPAsbnKsL5Utu0RfLGP k+gRnyYgNwb891R51Q87scV+1wAGxb8PtveT0icxdBBCIwSgz5TmKYaTCXDu5H+k1kF3 7H6w== X-Gm-Message-State: AD7BkJL6LfJ6xXhmRTNnXmYTHllpzg7rKFWV5Np9guZFGXCbOv2Ua6ealODDbcHX/I5Q5Q== X-Received: by 10.194.63.144 with SMTP id g16mr29645463wjs.149.1457974334574; Mon, 14 Mar 2016 09:52:14 -0700 (PDT) Received: from gumby.homeunix.com ([90.195.211.158]) by smtp.gmail.com with ESMTPSA id e4sm16999442wma.10.2016.03.14.09.52.13 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 09:52:13 -0700 (PDT) Date: Mon, 14 Mar 2016 16:52:12 +0000 From: RW 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: <20160313232411.J61428@sola.nimnet.asn.au> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 16:52:17 -0000 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 > 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