From owner-freebsd-stable@FreeBSD.ORG Sat Jan 10 15:11:38 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C520106566B for ; Sat, 10 Jan 2009 15:11:38 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id 1C64A8FC16 for ; Sat, 10 Jan 2009 15:11:37 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so88491ugs.39 for ; Sat, 10 Jan 2009 07:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=+L2LRSB74fSjHreQUTnbQ2cS+OIRcPBTDO12Mb2iwvc=; b=U4C85YTPg0vmLs39UiUhYyi8wbb0G90A8F7fiDQ+NuW96jMTr8HVaoYedeyM1vgK7c HpwUwQqigx9OBuQ3R0EmoqTJfzKOzPQlIlbhcLPTaXuWJTUBJetGXE1/MhwzrNCEYc8C Z8jGyTkj1fRSaoCegD518QDYcRn7IpAromOjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=duKMlved2PV/fGV7NW13Ye37+YsNK1iLHtNFeF0y9kTIUcJTZSDGtJMDyJZUvQCudy ud7R5iu2kuBdHScSl/ntRMarXU0tJ12AzRZjCSxraDMioGdRHghvefWx/yvZ7FIoxsp8 PperVfysYOhs/3Pi+xqXIj9OJH28wNA0x+V/U= Received: by 10.67.88.7 with SMTP id q7mr242480ugl.76.1231600297027; Sat, 10 Jan 2009 07:11:37 -0800 (PST) Received: by 10.67.88.9 with HTTP; Sat, 10 Jan 2009 07:11:36 -0800 (PST) Message-ID: <7d6fde3d0901100711p70e9a66ahadc3c2570fc6f94b@mail.gmail.com> Date: Sat, 10 Jan 2009 07:11:36 -0800 From: "Garrett Cooper" To: "Andriy Gapon" In-Reply-To: <4968AE90.5010004@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4968AE90.5010004@icyb.net.ua> Cc: FreeBSD Stable Subject: Re: rc.d/mountd: confusing message (and behavior?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 15:11:38 -0000 On Sat, Jan 10, 2009 at 6:20 AM, Andriy Gapon wrote: > > $ /etc/rc.d/mountd onestart > /etc/rc.d/mountd: WARNING: /etc/exports is not readable. > Exit 1 > > Actually /etc/exports did not exist at all. > And this was not a "WARNING", this was a fatal error, mountd did not start. > > Alsp, should it actually fail like this? I have ZFS and I plan to do > all NFS exports from ZFS, so /etc/exports would never be used. Uh, mountd is used for nfsd, so I'm not sure why you're trying to do this... The reference to /etc/exports is being picked up from /etc/rc.d/mountd on this line: required_files="/etc/exports" and it's picking up the actual `does it exist?' test from: [gcooper@orangebox /usr/home/gcooper]$ grep -A 3 required_files /etc/rc.subr # required_files n If set, check for the readability of the given # files before running a (re)start command. # # required_modules n If set, ensure the given kernel modules are -- rcvar required_dirs required_files required_vars eval unset ${_arg}_cmd ${_arg}_precmd ${_arg}_postcmd case "$_file" in -- for _f in $required_files; do if [ ! -r "${_f}" ]; then warn "${_f} is not readable." if [ -z "$rc_force" ]; then Cheers, -Garrett