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 <jsafrane@redhat.com>
#
. /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
fi
fi
- create_default_groups
+ if [ $CREATE_DEFAULT == "yes" ]; then
+ create_default_groups
+ fi
touch /var/lock/subsys/$servicename
retval=$?