The cgconfig.initd script uses bash arrays which requires bash. The init.d scripts should be POSIX compliant.
Created attachment 323478 [details, diff] untested patch Should behave *exactly* the same as current init.d (eg break if you have a lvm device called /dev/vg0/lv_macgroup or similar) while still being POSIX compliant. Completely untested.
There are a list of a problems in these init scripts and it's logic should be reviewed because openrc handles main cgroups itself. I'll try to post questions in the nearest future.
Minor fix, while in cgred init script can you change: start() { local options="${NODAEMON} ${LOG}" if [[ -n "${LOG_FILE}" ]]; then options="${options} --log-file=${LOG_FILE}" to: start() { local options="${NODAEMON} ${LOG}" if [[ -n "${LOG_FILE}" ]]; then options="${options} --logfile=${LOG_FILE}" I fixed this for myself but it must not be much of an issue since no one else has written a bug. I know I am not supposed to do it this way.
the init scripts have been completely redone with libcgroup-0.41-r3.ebuild and should be POSIX. Please reopen if you see anything that isn't.