From: Jan Safranek Date: Tue, 22 Dec 2009 08:23:42 +0000 (+0100) Subject: Don't create sysdefault group whent it's not needed X-Git-Tag: v0.35~8^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff35955379053d1134cf020590c2e0cbdb76a946;p=thirdparty%2Flibcgroup.git Don't create sysdefault group whent it's not needed IMHO most of users don't need sysdefault group being created during boot - it's quite slow and at least in Fedora there is no application using it. So, let users to configure it and allow them to turn the sysdefault off. Whether the option should be enabled/disabled is distro-specific, we as libcgroup turn it on. Changelog: - create the sysdefault group by default Signed-off-by: Jan Safranek --- diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in index 13c16f87..cab9c03b 100644 --- a/scripts/init.d/cgconfig.in +++ b/scripts/init.d/cgconfig.in @@ -48,6 +48,12 @@ servicename=cgconfig # . /lib/lsb/init-functions +# read the config +CREATE_DEFAULT=yes +if [ -e /etc/sysconfig/cgconfig ]; then + . /etc/sysconfig/cgconfig +fi + parse_mounts() { while read name mountpt fs opts other do @@ -140,7 +146,9 @@ start() { fi fi - create_default_groups + if [ $CREATE_DEFAULT == "yes" ]; then + create_default_groups + fi touch /var/lock/subsys/$servicename retval=$?