From owner-svn-src-all@FreeBSD.ORG Wed Dec 19 19:42:03 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 0913429B; Wed, 19 Dec 2012 19:42:03 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 1B4388FC0C; Wed, 19 Dec 2012 19:42:02 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qBJJg1Od014452; Wed, 19 Dec 2012 12:42:01 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id qBJJfwn1065582; Wed, 19 Dec 2012 12:41:58 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl From: Ian Lepore To: Garrett Cooper In-Reply-To: References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Wed, 19 Dec 2012 12:41:58 -0700 Message-ID: <1355946118.1198.217.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, Andrey Zonov , src-committers@freebsd.org, Xin LI , svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list 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 19:42:03 -0000 On Wed, 2012-12-19 at 11:10 -0800, Garrett Cooper wrote: > On Wed, Dec 19, 2012 at 7:37 AM, Ian Lepore > wrote: > > ... > > > Instead of running sysctl a bunch of times, how about something > > conceptually similar to > > > > cat /etc/sysctl.d/* /etc/sysctl.conf | sysctl -f - > > > > Along with this (untested) patch to make sysctl understand "-f -". > > > > Hmmm, is /dev/stdin available as early as sysctl.conf runs? If not, the > > attached patch isn't going to work. > > Why not just make sysctl understand multiple -f options? You're > probably going to run into more problems parsing from /dev/stdin and > it's going to obfuscate things a lot dealing with which file came > last, feeding back diagnostic info, etc. > Please don't "linuxise" this tool. > Thanks, > -Garrett Hrm. I would consider enhancing a program to accept data on stdin, thereby allowing complex tasks to be efficiently accomplished using pipelines of simple tools, to be more "unix-ising" than "linux-ising". -- Ian