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 1RpXNx-000659-FO for garchives@archives.gentoo.org; Tue, 24 Jan 2012 03:49:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2642FE0D33; Tue, 24 Jan 2012 03:49:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EB893E0D33 for ; Tue, 24 Jan 2012 03:49:18 +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 669DE1B4020 for ; Tue, 24 Jan 2012 03:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id ACE0880044 for ; Tue, 24 Jan 2012 03:49:17 +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: Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/sysfs.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: ce4c9b5397662869a707cd68a373aa751e125a50 Date: Tue, 24 Jan 2012 03:49:17 +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: 6e2a287a-e29a-48c8-baf3-c71ab17f18d5 X-Archives-Hash: f7c67930eeb5dd13cfc2a905131c4e8b commit: ce4c9b5397662869a707cd68a373aa751e125a50 Author: William Hubbs gentoo org> AuthorDate: Tue Jan 24 03:46:33 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Jan 24 03:46:33 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Dce4c9b53 Cgroups: create openrc control group This creates the "openrc" control group with no subsystems attached. The next step will be to add everything openrc starts to this group. --- init.d/sysfs.in | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/init.d/sysfs.in b/init.d/sysfs.in index 7021feb..37350ed 100644 --- a/init.d/sysfs.in +++ b/init.d/sysfs.in @@ -79,6 +79,11 @@ mount_cgroups() return 0 fi =20 + local agent=3D"@LIBEXECDIR@/sh/cgroup-release-agent.sh" + mkdir /sys/fs/cgroup/openrc + mount -t cgroup \ + -o none,nodev,noexec,nosuid,name=3Dopenrc,release_agent=3D"$agent" \ + openrc /sys/fs/cgroup/openrc while read name hier groups enabled rest; do case "${enabled}" in 1) mkdir /sys/fs/cgroup/${name}