From owner-freebsd-rc@FreeBSD.ORG Mon Mar 29 19:20:58 2010 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE94F1065670 for ; Mon, 29 Mar 2010 19:20:58 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 575928FC34 for ; Mon, 29 Mar 2010 19:20:58 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id B3405A5B04B; Tue, 30 Mar 2010 03:20:56 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id bD+BEfk4o1rC; Tue, 30 Mar 2010 03:20:49 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 236D2A5AC5F; Tue, 30 Mar 2010 03:20:47 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp: content-type:content-transfer-encoding; b=q18aI+J7vnkWXSL2FWs2snWMITWSSzm9VNuoTy4sOJLsdrgoN+8bKJKcsOWkDvHk3 L2FA2yJIalTJcrfwYrPiw== Message-ID: <4BB0FD8C.6070000@delphij.net> Date: Mon, 29 Mar 2010 12:20:44 -0700 From: Xin LI Organization: The Geek China Organization User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100304 Thunderbird/3.0.3 ThunderBrowse/3.2.8.1 MIME-Version: 1.0 To: freebsd-rc@freebsd.org References: <201003261410.35830.jhb@freebsd.org> <4BAE67FA.6070609@FreeBSD.org> In-Reply-To: <4BAE67FA.6070609@FreeBSD.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: mountd and reload X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2010 19:20:58 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010/03/27 13:18, Doug Barton wrote: > On 03/26/10 12:18, Xin LI wrote: >> On Fri, Mar 26, 2010 at 11:10 AM, John Baldwin wrote: >>> FYI, it would be nice if someone could fix it so that /etc/rc.d/mountd reload >>> works when nfs_server_enable="YES" is set in /etc/rc.conf but >>> mountd_enable="YES" is not explicitly set. > >> How would you think about something like this (hackish, though... I >> think we should perhaps make a 'rcvars' list): > > I am opposed to it. We already have a mechanism for starting things that > don't have _enable set. > > OTOH I agree that there is a more general problem that our rc.d system > should be smarter about what dependent services need to be enabled for a > given service but that problem should be solved generally. One-off hacks > like this will create a lot of drama and confusion that I would really > prefer to avoid. I think what we really want is to explicitly say, e.g. nfsd_enable is considered the same as if mountd_enable set to "YES" regardless whether we got a "NO" from the default rc.conf. e.g. in the past we do: - in nfsd script: if enabled="YES" then forcestart mountd Now we do: - in nfsd script: start when nfsd_enable="YES" - in mountd script: start when either mountd_enable="YES" or nfsd_enabled="YES" And, make sure that these scripts are properly ordered when necessary. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLsP2MAAoJEATO+BI/yjfB4oIH/i3RSGWbKilSs4cvlFELVy8R eWE/6j2OOGzKLACC0kpoHx41AMNSiA9+4VN/P9QjSsLzsMBprXn/r057SrFr4eza WO4lbmfTYuuQlF4XP+UNQfaQ1t7LXsjlvqpilfd51CJUuxZgVVfuEx5UhG4kJviO HrgBo7yvhsRozU/7ncCyQhtCzA9bliJ44OzOf+5R0tYn43ochVnIDrL/e4qz19Jy f2W/lMVgU1HYdsAoKvVKPchPPNir/PVOeqKLdwgSM9rb8P53itFFgl4hh31etFxA wG4j9qG1meo5jjfLCpouOfVKgI4giweHQLDfqFt3rHw6HFs35l6qPcCMh1xPLok= =+eVS -----END PGP SIGNATURE-----