[SOLVED] rc.cgconfig fails with syntax error after PAM integration on -current
by bl0tt0 from LinuxQuestions.org on (#53NW9)
Hey all,
Just wanting to check whether this is a phenomenon unique to my system. I recently ran the update to -current that integrates PAM (via slackpkg upgrade-all and slackpkg install-new to catch the additional packages), and after running those commands, it seems that I can no longer initialize my cgroups via the rc.cgconfig script:
Code:root@rackware:~# /etc/rc.d/rc.cgconfig start
Starting cgconfig service: error at line number 49 at daemons/lxc:syntax error
Error: failed to parse file /etc/cgconfig.conf
/usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Have multiple paths for the same namespace
Failed to parse /etc/cgconfig.confThat 'multiple paths for the same namespace' error seems to be kind of nebulous, from the Googling I have already done (there are bug reports referencing comments at the tail end of a config file as a potential cause, for instance). For reference, this is the cgconfig.conf I am trying to load (based off of Chris Willing's guide to running unprivileged LXC containers):
Code:group daemons/lxc {
perm {
task {
uid = root;
gid = users;
}
admin {
uid = root;
gid = users;
}
}
cpuset {
cgroup.clone_children = 1;
cpuset.mems = 0;
cpuset.cpus = 0-3;
}
cpu {}
cpuacct {}
blkio {}
memory { memory.use_hierarchy = 1; }
devices {}
freezer {}
net_cls {}
perf_event {}
net_prio {}
}As I mentioned, this was working prior to the last update, and I do see that the libcgroup package was bumped in order to integrate PAM. Has anyone else running cgroups via the cgrulesengd run into issues following the last update?
Thanks!


Just wanting to check whether this is a phenomenon unique to my system. I recently ran the update to -current that integrates PAM (via slackpkg upgrade-all and slackpkg install-new to catch the additional packages), and after running those commands, it seems that I can no longer initialize my cgroups via the rc.cgconfig script:
Code:root@rackware:~# /etc/rc.d/rc.cgconfig start
Starting cgconfig service: error at line number 49 at daemons/lxc:syntax error
Error: failed to parse file /etc/cgconfig.conf
/usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Have multiple paths for the same namespace
Failed to parse /etc/cgconfig.confThat 'multiple paths for the same namespace' error seems to be kind of nebulous, from the Googling I have already done (there are bug reports referencing comments at the tail end of a config file as a potential cause, for instance). For reference, this is the cgconfig.conf I am trying to load (based off of Chris Willing's guide to running unprivileged LXC containers):
Code:group daemons/lxc {
perm {
task {
uid = root;
gid = users;
}
admin {
uid = root;
gid = users;
}
}
cpuset {
cgroup.clone_children = 1;
cpuset.mems = 0;
cpuset.cpus = 0-3;
}
cpu {}
cpuacct {}
blkio {}
memory { memory.use_hierarchy = 1; }
devices {}
freezer {}
net_cls {}
perf_event {}
net_prio {}
}As I mentioned, this was working prior to the last update, and I do see that the libcgroup package was bumped in order to integrate PAM. Has anyone else running cgroups via the cgrulesengd run into issues following the last update?
Thanks!