From owner-svn-src-all@FreeBSD.ORG Wed Dec 19 22:37:16 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3E8668E; Wed, 19 Dec 2012 22:37:16 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id A5E7F8FC0C; Wed, 19 Dec 2012 22:37:16 +0000 (UTC) Received: from epsilon.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 4059B227EE; Wed, 19 Dec 2012 14:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1355956636; bh=C0eJDS77XdzvvXz1WONu1ZNZu8kbtGMDfSCmZnCsV+Y=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=OLcI4vx/b3pQw0YZukZP9USz1xNZ6NUEAM7ceaSqHLW+5N7/gJ2f07j6yeeClFMnS SpPQdxFrAwkdzhCMaSU/ds5KDXUFUYoLbPPqqc58iTuGCp4W8U7WQ78aD8XQGlzLYJ sMR4WREgB+N9EhbdiI2RWmaKUNw1jWdq750mRbGg= Message-ID: <50D2419B.20906@delphij.net> Date: Wed, 19 Dec 2012 14:37:15 -0800 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Benjamin Kaduk Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan> <05CC5BAD-B968-4A7A-8097-A3344D970D63@mu.org> <1355932607.1198.206.camel@revolution.hippie.lan> <50D2128A.7030205@delphij.net> <20121219210418.GA83983@stack.nl> <50D23961.7090803@delphij.net> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "svn-src-head@freebsd.org" , bjk@freebsd.org, "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2012 22:37:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 12/19/12 14:28, Benjamin Kaduk wrote: > [cc trimmed] > > On Wed, Dec 19, 2012 at 5:02 PM, Xin Li > wrote: > > Irrelevant. Consider this (extreme) situation: someone > distributes several sets of sysctl values tuned for certain > situations, like tcp.conf, supermicro.conf, ... and wants to put > them together in a directory, it's useful to source from the > directory without having to do a generation of command line on > boot, so when something goes wrong, they just remove the pack > rather than changing /etc/rc.conf. > > > Not a direct reply, but just noting that it can be *very* useful > to have, e.g., a README or foo.old or foo.disabled file in the same > directory where the "live" configuration files live. Always > interpreting the full '*' glob is not always the best thing to do. This is not an Unix utility should solve. To quote Terry Lambert: "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." In other words, sysctl -f README should interpret README as input, not a file that contains user consumable text. To solve the problem we need a construct like in /etc/rc.subr, run_rc_script(). Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJQ0kGbAAoJEG80Jeu8UPuzdzsH/35v8W1ww2AIqun5Hhwp35Az xxlf/TDQdW1WE3ZwW2gqOD7AgGx+Q3yRKf+nGmQe1yvu8WP3i4HVUkDfp+ySzytZ oEBxLJnYZGstuHcmhncLGU6PbCBwcK3Y9dRlFIb9L5srFHaVuMsWK2nIZDx7TeOS +tcSwOSuJrerqCw6e6O61spHYTnIdnlAb1jEV7GaUciVqcgBxbKMf9iMpAspWm/e vl3dogHI+0NCT/tgaKAjS2EdG5UKqugF6Opc5RrwqDRo6kFNExy+0DN1UeFN4ahV 775872xHZEkHJvZtoTNXH5wKsfPhvjKLne2/nVkKhfu9aHwkXaHdZZXJdxB7+RU= =kMyx -----END PGP SIGNATURE-----