From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 20 20:23:05 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 18944106564A for ; Wed, 20 Jun 2012 20:23:05 +0000 (UTC) (envelope-from drobbins@funtoo.org) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D8EA8FC0C for ; Wed, 20 Jun 2012 20:23:04 +0000 (UTC) Received: by werg1 with SMTP id g1so7146173wer.13 for ; Wed, 20 Jun 2012 13:22:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=lMOE3gK0PVorVzTkNfkBYW4Y3IkA69L/YbSnFx5RTM8=; b=nmvkXcGvfbq2kDaCcOJfS3tP2+NjUagh9E8vvUr4/5gMCAX24Ijuy0pqt7RL88ogl0 JoTKq0XOAK7+jnI+UPUm3m6NJ/HBMazs+xKjOhPyYhV1btrQL2sX5IFuqHf8nI9xs83X qW28aTrc6ckmiS0PMKcjYjlFsUvTOH5QcupCYJTQJZSdpDNQEyE0F4rLWtNYQrVSlaMz ZhUNU61bthVfVZ3fe4xD1qkRRfpFYT4ExatrZEPbs51ilCVjNsw1bbmC4Bf3TDLa+8HO 7eVohwl944ytW2OFEO6nClOdsyNpjPV4LO8zRDnvZWH59fI3lBQImB477gI7cMYfpyHB 3+aA== MIME-Version: 1.0 Received: by 10.216.213.79 with SMTP id z57mr13273509weo.27.1340223777631; Wed, 20 Jun 2012 13:22:57 -0700 (PDT) Received: by 10.180.104.1 with HTTP; Wed, 20 Jun 2012 13:22:57 -0700 (PDT) In-Reply-To: References: <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> <4FDFB44D.9090308@gentoo.org> <4FE0ADCD.9010109@FreeBSD.org> <4FE0C123.8030301@gentoo.org> <4FE0F773.1080403@gentoo.org> <4FE100F9.2050009@funtoo.org> <20120620073920.GA5300@lonesome.com> Date: Wed, 20 Jun 2012 14:22:57 -0600 Message-ID: From: Daniel Robbins To: Michael Ross Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmT8aqOmsrkR4/QxDA+bCDl3YlPdt48XCoQ1Kn++jUZ7TCyLMuUGu/vEj7vkQ0dw3dBzr54 X-Mailman-Approved-At: Wed, 20 Jun 2012 20:44:45 +0000 Cc: Wojciech Puchar , "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: Wed, 20 Jun 2012 20:23:05 -0000 On Wed, Jun 20, 2012 at 1:52 PM, Michael Ross wrote: > > Just to clarify: > In OpenRC I can have *arbitrary* runlevels? > Not like as I remember from years ago when I used Linux, "runlevel 1 2 3 4 > 5", > but any number of "default" "online" "maintenance", > and thus I'd have *sets* of services I could conveniently start and stop > together? Yes, this is what OpenRC offers. You can even have one runlevel be a child of another runlevel. All runlevels have logical names. By default, the system boots into "default". These are mapped to old-school 1 2 3 4 5 runlevels under linux since we are still using sysvinit, 3 maps to "default". But you can change after boot: # rc maintenance # rc online etc. This doesn't change the "hard" runlevel (3) but it changes the OpenRC logical runlevel. Basically, this convenient system is compatible with traditional linux numerical runlevels but does depend on them. > But there is no possibility of separating base system /etc and ports > /usr/local/etc? > The separation between the two is something I'd not want to loose. I don't think it would be a very huge leap at all to map in both system and ports scripts. It would likely be a relatively straightforward patch if it is not already supported. Regards, Daniel