From ff35955379053d1134cf020590c2e0cbdb76a946 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 22 Dec 2009 09:23:42 +0100 Subject: 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 --- scripts/init.d/cgconfig.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in index 13c16f8..cab9c03 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=$? -- cgit