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 1Rcu27-0000B4-EU for garchives@archives.gentoo.org; Tue, 20 Dec 2011 07:22:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C88621C075; Tue, 20 Dec 2011 07:22:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 06F9021C075 for ; Tue, 20 Dec 2011 07:22:34 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7E5EB1B400B for ; Tue, 20 Dec 2011 07:22:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id B996780042 for ; Tue, 20 Dec 2011 07:22:33 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <3e2001f6a2f6d49f452b8d5b009c7190b7839524.WilliamH@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/, etc/ X-VCS-Repository: proj/openrc X-VCS-Files: etc/rc.conf.Linux init.d/sysfs.in X-VCS-Directories: init.d/ etc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 3e2001f6a2f6d49f452b8d5b009c7190b7839524 Date: Tue, 20 Dec 2011 07:22:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 91bd0971-d66d-4c6d-8788-67aae864eb51 X-Archives-Hash: 5edd85151d60069d33d1ac2f6553f9a8 commit: 3e2001f6a2f6d49f452b8d5b009c7190b7839524 Author: Piotr Karbowski gmail com> AuthorDate: Sat Dec 17 16:45:11 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Dec 20 07:14:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D3e2001f6 add rc_cgroup option to allow disabling of cgroup default setup Currently, cgroups are still in development, so we are not setting them up by default. However, this default will be changed in the future. This commit message and patch were updated by William Hubbs gentoo.org>. X-Gentoo-Bug: 395079 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=3D395079 --- etc/rc.conf.Linux | 6 ++++++ init.d/sysfs.in | 1 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/etc/rc.conf.Linux b/etc/rc.conf.Linux index 9b5859a..e149a2c 100644 --- a/etc/rc.conf.Linux +++ b/etc/rc.conf.Linux @@ -22,3 +22,9 @@ rc_sys=3D"@RC_SYS_DEFAULT@" # consolefont, numlock, etc ...) rc_tty_number=3D12 =20 +# openrc can set up linux control groups the way the documentation in +# the kernel recommends creating them. +# Currently, this option is disabled by default, but it will be enabled +# in the future, so if you would like to see how control groups will be +# created, uncomment this line. +#rc_cgroups=3D"YES" diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 8838213..a709e5d 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -64,6 +64,7 @@ mount_misc() =20 mount_cgroups() { + yesno ${rc_cgroups:-NO} || return 0 if [ ! -e /proc/cgroups ]; then return 0 fi