Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628802 - dev-libs/libcgroup init.d script bugs + enhancement
Summary: dev-libs/libcgroup init.d script bugs + enhancement
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 09:03 UTC by Octavian
Modified: 2023-01-28 20:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Octavian 2017-08-24 09:03:25 UTC
/etc/init.d/cgconfig contains the wrong location for 

WRONG:
CGCLASSIFY="/usr/sbin/cgclassify"
OK:
CGCLASSIFY="/usr/bin/cgclassify"


====================================================

Furthermore, some PID's disappear during classification making the init script to fail if the last PID is such a PID

I would propose the following change

        #local pid
        #for pid in $(ps --no-headers -eL o tid); do
        #       ${CGCLASSIFY} ${pid}
        #done
        ps --no-headers -eL o tid | xargs ${CGCLASSIFY} || echo "Ignoring missing PIDs"

If the dependency of xargs is not desired then 

        ${CGCLASSIFY} ${pid} || echo "Ignoring missing PIDs"

Would make sure we ignore the missing PID's

Best regards,
Octavian