Package Details: libcgroup 2.0-1

Git Clone URL: (read-only, click to copy)
Package Base: libcgroup
Description: Library that abstracts the control group file system in Linux
Upstream URL:
Licenses: LGPL
Submitter: heftig
Maintainer: eworm
Last Packager: eworm
Votes: 115
Popularity: 1.23
First Submitted: 2010-04-25 12:01
Last Updated: 2021-05-10 10:42

Latest Comments

1 2 3 4 Next › Last »

pxeger commented on 2021-05-16 13:55

libcgroup-2.0.tar.bz2 is failing its PGP signature check.

pierrec commented on 2021-04-16 13:10

Hi, I've just created a libcgroup-git package as an alternative. It supports cgroup-v2

zyeri commented on 2019-11-15 03:18

libcgroup-0.41.tar.bz2 is failing its sha256 check.

appleby commented on 2019-02-22 02:27

The cgrules service is failing to start for me on reboot once it's been enabled. The error in the systemctl status cgrules.service log is:

cgrulesengd[399]: Error binding UNIX socket /var/run/cgred.socket: No such file or directory

It seems the problem is that I have /var on a separate partition, and the /var filesystem is not mounted at the time the cgrules service runs. This is because the cgrules.service unit file specifies DefaultDependencies=no and, but is the target that mounts /var.

Note that /var/run is symlinked to /run on Arch, and /run is apparently mounted very early in the boot process, so the simplest fix is to pass --enable-cgred-socket=/run/cgred.socket to the configure script. The following patch worked for me:

diff -x '*.xz' -u libcgroup/PKGBUILD
--- libcgroup/PKGBUILD  2015-06-30 06:39:06.000000000 -0500
+++      2019-02-21 15:49:02.660230586 -0600
@@ -28,6 +28,7 @@
                --sysconfdir=/etc \
                --localstatedir=/var \
                --sbindir=/usr/bin \
+               --enable-cgred-socket=/run/cgred.socket \


Alternatively, if you're ok with running cgrules.service after, the following patch also works. The idea is to just let systemd add a default dependency on and an, which ensures that /var is mounted by the time cgrules.service runs. It might also make sense to apply a similar change to cgconfig.service, but that is not required.

diff -x '*.xz' -u libcgroup/cgrules.service
--- libcgroup/cgrules.service   2015-06-30 06:39:06.000000000 -0500
+++   2019-02-21 13:11:17.682489779 -0600
@@ -1,11 +1,6 @@
 Description=Control Group rules service

-# The service should be able to start as soon as possible,
-# before any 'normal' services:

diff -x '*.xz' -u libcgroup/PKGBUILD
--- libcgroup/PKGBUILD  2015-06-30 06:39:06.000000000 -0500
+++  2019-02-21 14:23:46.900014839 -0600
@@ -18,7 +18,7 @@
-            '6b1340ff6717f55e5e57dacc72accc0bfaed7e50ef31439271b6ddc893cbf671')
+            '1186ecb5647b26788edcd0b9e782ae6fa783399547773363818e07c21cbbabbf')

 build() {
    cd "${srcdir}/${pkgname}-${pkgver/rc/.rc}"

wdkrnls commented on 2018-11-25 20:15

I'm seeing the following error on install (using yaourt -S):

groupadd: cannot open /etc/gshadow
groupadd: failed to unlock /etc/gshadow
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) etckeeper: post-transaction commit
No database errors have been found!

zzbutcher commented on 2018-03-21 06:35

hi,cgroup do not working.why?

cgconfig.conf: mount { cpu = /cgroup/cpu }

● cgconfig.service - Control Group configuration service Loaded: loaded (/usr/lib/systemd/system/cgconfig.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2018-03-21 06:33:52 UTC; 5s ago Process: 12761 ExecStop=/usr/sbin/cgclear -l /etc/cgconfig.conf -L /etc/cgconfig.d -e (code=exited, status=0/SUCCESS) Process: 12794 ExecStart=/usr/sbin/cgconfigparser -l /etc/cgconfig.conf -L /etc/cgconfig.d -s 1664 (code=exited, status=101) Main PID: 12794 (code=exited, status=101)

Mar 21 06:33:52 systemd[1]: Starting Control Group configuration service... Mar 21 06:33:52 systemd[1]: cgconfig.service: main process exited, code=exited, status=101/n/a Mar 21 06:33:52 systemd[1]: Failed to start Control Group configuration service. Mar 21 06:33:52 cgconfigparser[12794]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed Mar 21 06:33:52 cgconfigparser[12794]: Error: cannot mount cpu to /cgroup/cpu: Permission denied Mar 21 06:33:52 systemd[1]: Unit cgconfig.service entered failed state. Mar 21 06:33:52 systemd[1]: cgconfig.service failed.

arno commented on 2014-03-25 19:13

I think it need a cgrules.socket to start correctly.

$ diff -U1 cgrules.service{.org,}
--- 2014-03-25 20:07:42.000000000 +0100
+++ cgrules.service 2014-03-25 20:10:22.000000000 +0100
@@ -2,2 +2,3 @@
Description=Control Group rules service

@@ -16 +17,2 @@

$ cat cgrules.socket
Description=Control Group Rules Daemon Listen Socket



eworm commented on 2014-02-20 10:50

flex and bison belong to base-devel and are expected to be installed.

Hrafnahnef commented on 2014-02-20 10:49

Please add

makedepends=('flex' 'bison')

to the PKGBUILD.

kjslag commented on 2014-01-28 08:54

flex seems to to be a necessary make dependency