From owner-svn-src-head@FreeBSD.ORG Wed Dec 19 20:20:08 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCC4D721; Wed, 19 Dec 2012 20:20:08 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by mx1.freebsd.org (Postfix) with ESMTP id 626CB8FC0A; Wed, 19 Dec 2012 20:20:07 +0000 (UTC) Received: by mail-bk0-f50.google.com with SMTP id jf3so1260102bkc.37 for ; Wed, 19 Dec 2012 12:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jYoYev7E7R2tXWeSeWqz4DpSktzIwbQTe4LAsYth8VA=; b=m2+Zk31589/S6em4TY8BW4v/9jZsb98kOQUKc54mt8qjxByW+JwTBm/avdx1sdVg6b 60eS2Dg6SxwZenVGtG3zNNa5+wfnxmSjcUaJjMwvSFQo5stR3xz/Aam6vuR/4SffrKAC oNgmI+bFi/7bev6hZwzQ4g/gdQObVxTUaocBMRcH9opCWu8VhQpWGQ6L3EHbuGBBIDBA DQPIIasveD4FhsJmMLg8eBtKBgHUiUZYcZ0KoccxmYhSZl0AU7xIROhnyWkpFTHhAClt DmlcDVOQXxvaJnkDtMoa40EVUS2nvZ5R208YaioaSI+39aWWWd7pqKIsCRraBpdp59KT vCUg== MIME-Version: 1.0 Received: by 10.204.4.131 with SMTP id 3mr3217137bkr.25.1355948054494; Wed, 19 Dec 2012 12:14:14 -0800 (PST) Received: by 10.204.167.71 with HTTP; Wed, 19 Dec 2012 12:14:14 -0800 (PST) Received: by 10.204.167.71 with HTTP; Wed, 19 Dec 2012 12:14:14 -0800 (PST) In-Reply-To: References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan> Date: Wed, 19 Dec 2012 20:14:14 +0000 Message-ID: Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl From: Chris Rees To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, Xin LI , svn-src-head@freebsd.org, Andrey Zonov X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2012 20:20:09 -0000 On 19 Dec 2012 19:37, "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. I seem to recall cpio being around a lot before Linux... Our sh also accepts piped scripts. It's useful. ssh host cat file | sysctl -f - Chris