From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O3NUA-0003a3-OM for garchives@archives.gentoo.org; Sun, 18 Apr 2010 05:56:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5CCAE0772; Sun, 18 Apr 2010 05:55:35 +0000 (UTC) Received: from mail-gx0-f216.google.com (mail-gx0-f216.google.com [209.85.217.216]) by pigeon.gentoo.org (Postfix) with ESMTP id A06DFE0772 for ; Sun, 18 Apr 2010 05:55:35 +0000 (UTC) Received: by gxk8 with SMTP id 8so2166331gxk.9 for ; Sat, 17 Apr 2010 22:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=W84um3lobD2TCgu6sDMmmZ+zaNM6N3mR1hXH7NDsmyY=; b=ptHbd7RzegbGlCjEnAo72egY+FNu3mBbUROgwZRDyhcQHVXVkqlxGSZHCLQRBzkC0l IwnwMiImMq8V3gRW+ueZqZmP4Q9aaEMzmT76cXPs9s3tdwEASQwG5P15z0DTI/uwv/9H 6BJNzGOd92h1SVw+MPgYJwRCIJHoDEDFN5fwQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=maaUi4/EkHgQYvSRo6ej8oS9aO/wMCCCZoedvzkYaSo9+M+0RfjaWn8kf/bjycmko1 Ze/K7GcH2jkNxnu2Z99jwzL1upZRmuAjzF1RT1t/OPWqgb1L6wCZnbOLSUninK6iRDyE LjZxf1MWG9hoiKB5gXDQWFdL3wQioZbuvdPLY= Received: by 10.101.172.1 with SMTP id z1mr8477061ano.243.1271570134858; Sat, 17 Apr 2010 22:55:34 -0700 (PDT) Received: from [192.168.1.2] (adsl-0-94-36.jan.bellsouth.net [65.0.94.36]) by mx.google.com with ESMTPS id 30sm31496673anp.1.2010.04.17.22.55.33 (version=SSLv3 cipher=RC4-MD5); Sat, 17 Apr 2010 22:55:34 -0700 (PDT) Message-ID: <4BCA9ED4.8020905@gmail.com> Date: Sun, 18 Apr 2010 00:55:32 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100409 Gentoo/2.0.4-r1 SeaMonkey/2.0.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Are runlevels 3 4 5 the same? References: <4BCA9412.9070606@jaftan.com.au> <4BCA96F4.6070305@gmail.com> <4BCA9B9B.8030700@jaftan.com.au> In-Reply-To: <4BCA9B9B.8030700@jaftan.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: aae11bd1-45a4-4733-bddf-5809d2441db3 X-Archives-Hash: fd6d2f0def230c3be0b61c1c5ee0896d Adam wrote: > On 04/18/10 15:21, Dale wrote: > >> Adam wrote: >> >>> I want to choose console or X from grub, so i'm thinking i'll do >>> something like 'rc-update delete xdm 4' and then pass softlevel=4 to my >>> grub boot line, to make runlevel 4 a console runlevel. Is that the right >>> way to do it? >>> >>> >>> >> Gentoo doesn't use those runlevels. You need to read this: >> >> man rc-update >> >> Gentoo comes with the following runlevels: >> >> root@smoker ~ # ls /etc/runlevels/ >> total 5 >> drwxr-xr-x 6 root root 152 Jun 11 2008 . >> drwxr-xr-x 81 root root 4832 Apr 18 00:16 .. >> drwxr-xr-x 2 root root 368 Jun 11 2008 boot >> drwxr-xr-x 2 root root 512 Apr 9 20:05 default >> drwxr-xr-x 2 root root 72 Jun 11 2008 nonetwork >> root@smoker ~ # >> >> It generally boots to default. You can change that on the kernel boot >> line but with one of the above instead of a 4 as you posted. >> > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4 > > So gentoo does use the numerical runlevels (because that's what init > uses) as well as the gentoo runlevels you've shown. It looks like it > just maps the numbers to the names in inittab; > > l0:0:wait:/sbin/rc shutdown > l0s:0:wait:/sbin/halt -dhp > l1:1:wait:/sbin/rc single > l2:2:wait:/sbin/rc nonetwork > l3:3:wait:/sbin/rc default > l4:4:wait:/sbin/rc default > l5:5:wait:/sbin/rc default > l6:6:wait:/sbin/rc reboot > l6r:6:wait:/sbin/reboot -dk > > so, i guess this means i should point l4 to a custom runlevel in > /etc/runlevels that is the same as default with the exception that xdm > is removed... I'm assuming the linux kernel wont understand the gentoo > named runlevels, and therefore using those names in grub wouldnt work. > > If you want to boot to the single runlevel, just add softlevel=single to the end of the boot line in grub. You can do this in the config or edit the boot line when grub comes up and it should work fine. I have never used the number runlevels. It may work but I have never done it that way so I can't really say one way or the other. You can also create custom runlevels if you need them. I created one a while back to play with and I just added the directory and added the services I wanted in there. That should work fine. There may be other ways to create them as well. Also, you can use eselect to manage this as well. The module is called rc. I don't use it but that is the up and coming way to do it. Dale :-) :-)