From owner-svn-src-head@FreeBSD.ORG Wed Dec 19 19:37:07 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 AC2C8DB; Wed, 19 Dec 2012 19:37:07 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f42.google.com (mail-oa0-f42.google.com [209.85.219.42]) by mx1.freebsd.org (Postfix) with ESMTP id F358C8FC0C; Wed, 19 Dec 2012 19:37:06 +0000 (UTC) Received: by mail-oa0-f42.google.com with SMTP id j1so2527610oag.1 for ; Wed, 19 Dec 2012 11:37: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=VdDYERLLnX+GBETlQzQL6X6M50ohbYYFtgNsRHzDiqE=; b=fDoV/g7lAP0dOvmaELaBWs0GKGSZhn9SpFzxCe+fK/p6jiHAhjILS35qQoy2Kd4SdV bdf8Qlh8jHinG+jd6nrHdf9uHkwiwsbogwTHWrPw8H5w5ePqyhskSJ7C1VV8lekV/VNa GMWxz65LA52+jLwt/P5NbAKqwSJnYA1cpGqG9Ynqq2boGR5hLKzRdNFuyZQc41awb5WS A9EaPIajRUgbg1SA5OJ2Qmiys4IYWdC/eBGUEAPS+yE9D+wGAvcewxfn+22AbqPCb6dk smmJRBDG44ZDZBngaUV5RTj59KxHc51652kDB0nFWtZAtHnKW8DPgP9FEjeyOAlwVoaL ri6A== MIME-Version: 1.0 Received: by 10.182.2.169 with SMTP id 9mr5815665obv.66.1355944240375; Wed, 19 Dec 2012 11:10:40 -0800 (PST) Received: by 10.76.143.33 with HTTP; Wed, 19 Dec 2012 11:10:40 -0800 (PST) In-Reply-To: <1355931456.1198.203.camel@revolution.hippie.lan> References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan> Date: Wed, 19 Dec 2012 11:10:40 -0800 Message-ID: Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl From: Garrett Cooper To: Ian Lepore Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, Andrey Zonov , src-committers@freebsd.org, Xin LI , svn-src-all@freebsd.org 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 19:37:07 -0000 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