Package Details: libcgroup 0.41-2

Git Clone URL: https://aur.archlinux.org/libcgroup.git (read-only)
Package Base: libcgroup
Description: Library that abstracts the control group file system in Linux
Upstream URL: http://libcg.sourceforge.net
Licenses: LGPL
Submitter: heftig
Maintainer: eworm
Last Packager: eworm
Votes: 105
Popularity: 0.277677
First Submitted: 2010-04-25 12:01
Last Updated: 2015-06-30 11:39

Latest Comments

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 ip-172-31-25-183.us-east-2.compute.internal systemd[1]: Starting Control Group configuration service... Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal systemd[1]: cgconfig.service: main process exited, code=exited, status=101/n/a Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal systemd[1]: Failed to start Control Group configuration service. Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal cgconfigparser[12794]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal cgconfigparser[12794]: Error: cannot mount cpu to /cgroup/cpu: Permission denied Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal systemd[1]: Unit cgconfig.service entered failed state. Mar 21 06:33:52 ip-172-31-25-183.us-east-2.compute.internal 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,}
--- 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
+Requires=cgrules.socket

@@ -16 +17,2 @@
WantedBy=sysinit.target
+Also=cgrules.socket

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

[Socket]
ListenStream=/var/run/cgred.socket

[Install]
WantedBy=sockets.target

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

eworm commented on 2013-05-13 07:38

You should try to get your changes upstream. ;)

PKGBUILD is updated, have fun!

mamciek commented on 2013-05-13 07:05

please update cgrules.service. New revision of it is available here: https://gist.github.com/mamciek/5539646
Current revision contains an error.

mamciek commented on 2013-05-08 10:34

Please include systemd service to start cgrulesengd. I have created one here:
https://gist.github.com/mamciek/5539646

supersym commented on 2013-04-02 17:19

@eworm: works great here! Thanks :) Now I can rid myself of some more system messages that have been bugging me.

eworm commented on 2013-01-16 09:14

Updated the package and added systemd service file. Can anybody please test?

All comments