From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 21 16:40:41 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 C1FA9106566C for ; Thu, 21 Jun 2012 16:40:41 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 613038FC0C for ; Thu, 21 Jun 2012 16:40:41 +0000 (UTC) Received: by ggnm2 with SMTP id m2so779195ggn.13 for ; Thu, 21 Jun 2012 09:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=pRX2wpAwHf7P3h8y4UVkeSO1NVqBssfcEJ779Q9RnT8=; b=SWZJEK361jhChIqzH0/xCv70M1Z+tXwMlt4d2NSVkYUqFt87f/snSBPMe9n/lwCXpR ZSM95epm2J/gmkD1QByrOY6wbBE4Kxxv64THLJonNacq+00p0v6BYYbvTILf4B8FhPrc uQlU3zoj6GqbEqWtWGG4rZoZ+caOLpoTfew+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=pRX2wpAwHf7P3h8y4UVkeSO1NVqBssfcEJ779Q9RnT8=; b=eXTcDans5Idwon+DfXYHgpcMF9qoAgxWiA39OWLAR0D+IlE8pBOLwUKWduIw0tQLe+ qQan0RlzOmPvsSekGlcFxFrocCbLxpu8fZfV+c4YqnrUdTi/t62yXOsWi6L0DLI1gquz NyyQgFIHXS9RsI5WOJ6O76IuOJRWESZufrLsKJalOsBvO1HY9StRiUjhnzW+27Z5iI+o jzJCnHrphpxlPbmOAbBlXwEP9Vjo0Z7AI9GeUblJ2sNly1x4PbC1SBWaIYSJ3FBo9jxZ ivFCzhi5kOREYRGioFVRcPBalNMcS6s90crANEHYBdTqsN6eCH5ypaCKbWzEu7aSMwIC xqHg== Received: by 10.50.135.1 with SMTP id po1mr8082483igb.67.1340296840340; Thu, 21 Jun 2012 09:40:40 -0700 (PDT) Received: from DataIX.net (75-128-120-86.dhcp.aldl.mi.charter.com. [75.128.120.86]) by mx.google.com with ESMTPS id wo8sm33867799igb.17.2012.06.21.09.40.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jun 2012 09:40:39 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q5LGebcB095735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Jun 2012 12:40:38 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q5LGebYY095734; Thu, 21 Jun 2012 12:40:37 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Thu, 21 Jun 2012 12:40:37 -0400 From: Jason Hellenthal To: Chris Rees Message-ID: <20120621164037.GB88762@DataIX.net> References: <4FE0F773.1080403@gentoo.org> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> <20120620214006.GA1651@aspire.rulingia.com> <20120621161513.GA88762@DataIX.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gm-Message-State: ALoCoQnVpKuc0O8ZCjMLvFovcEYmXkOwxRF2eAgiklHNBlB+U3hILDDRrPVDHnVcZq4P/4Yk/q9K 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:40:42 -0000 On Thu, Jun 21, 2012 at 05:19:27PM +0100, Chris Rees wrote: > 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 > Thanks.. I didn't have a link at hand for that. -- - (2^(N-1))