From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 21 16:19:29 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29615106564A for ; Thu, 21 Jun 2012 16:19:29 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6578FC0A for ; Thu, 21 Jun 2012 16:19:28 +0000 (UTC) Received: by bkvi18 with SMTP id i18so933718bkv.13 for ; Thu, 21 Jun 2012 09:19:27 -0700 (PDT) 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=JLeNBw6c+/UK7SS6L1u/6P0TFmXHCsRCPWpw7RS0EVk=; b=0B1ZgRs/dsw9iYrHUc+pPECBIQsZet315x+Rp9RBMLXGDrnIJAb28xgJogonHOQM69 7mNaQgcKF+uEBu4HhNxPAAhTT3sFl0+9vd4Qd+/xKvTf6dlHl7Zovf/vy2ITjMzGKp5W ArxsRN5Ir6Kv2iCwt/S1R0rTRjr4hG8uPhbFBTscADZ07aFmXbVJdXzXW0FT3Zz3b/6O hZQMUZu2wEvMrh3wgR6UsMzItBRxFH7QkHx5dSHu5AWU0GyGChjlHa1GRgewZ0LU/+xu UWfaaIAHc2S31T4Mb3zXGlDbeVrP9p0SHVe/BCW0P2hv93DaZuJEa07EmpgYViS1vZyI paiA== MIME-Version: 1.0 Received: by 10.204.145.89 with SMTP id c25mr58070bkv.5.1340295567474; Thu, 21 Jun 2012 09:19:27 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Thu, 21 Jun 2012 09:19:27 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Thu, 21 Jun 2012 09:19:27 -0700 (PDT) In-Reply-To: <20120621161513.GA88762@DataIX.net> References: <4FE0C123.8030301@gentoo.org> <4FE0F773.1080403@gentoo.org> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> <20120620214006.GA1651@aspire.rulingia.com> <20120621161513.GA88762@DataIX.net> Date: Thu, 21 Jun 2012 17:19:27 +0100 Message-ID: From: Chris Rees To: Jason Hellenthal Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Wojciech Puchar , openrc@gentoo.org, "freebsd-hackers@freebsd.org" Subject: Re: Replacing rc(8) (Was: FreeBSD Boot Times) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2012 16:19:29 -0000 On Jun 21, 2012 5:15 PM, "Jason Hellenthal" wrote: > > > > On Thu, Jun 21, 2012 at 12:22:08PM +0200, Wojciech Puchar wrote: > > Lets make a summary. > > > > What functionality would be good to have in FreeBSD that doesn't exist: > > > > 1) "runlevels" with arbitrary names. runlevel change would start and stop > > right services. > > 2) exploit startup parallelism. > > > > > > What we do not want to change: > > > > - file structure which is simple. one file in rc.d/ per service and one > > global config file (rc.conf) > > - anything else that would make things more complicated. > > > > > > As for > > > > 1) i propose in rc.conf an option to put "NO", "YES" (or ALL) or runlevel > > list for each service or runlevel exclusion list for service. > > > > > > examples: > > > > service1_enable="YES" > > service2_enable="NO" > > service3_enable="foolevel maintenance" > > service4_enable="YES -foolevel" (or ALL -funkyrunlevel) > > > > name of default runlevel may be "full" or "multiuser" > > > > service 1 will always work, service 2 never, service 3 only at runlevels > > "foolevel" and "maintenance", service4 with any runlevel except > > "foolevel". > > > > still single rc.conf, not much bigger in practice. > > > > 2) no change in rc.d/* scripts and rc.conf, but change in scripts. > > > > > > If everyone agree i think i may write this new scripts. > > Sorry but I completely disagree here. Why ? > > Because do one thing and do one thing well. What do you mean ? He means the UNIX philosophy. http://www.faqs.org/docs/artu/ch01s06.html Chris