summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2009-12-22 09:24:52 +0100
committerJan Safranek <jsafrane@redhat.com>2009-12-22 09:24:52 +0100
commitff056dae8a4218a9b6843046364c73528294ccc1 (patch)
treecd33d25fbfb880a8dbe70a2840100d303f4c4072
parent22cffbd5d463ce21205f7539d2c099b5a81295de (diff)
downloadlibcg-devel/config3.zip
libcg-devel/config3.tar.gz
libcg-devel/config3.tar.xz
Clean up the init scriptdevel/config3
Some parts of the init script are not needed with the recent changes. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
-rw-r--r--scripts/init.d/cgconfig.in18
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in
index f61a0cd..261c7d8 100644
--- a/scripts/init.d/cgconfig.in
+++ b/scripts/init.d/cgconfig.in
@@ -32,8 +32,6 @@
# get correct location of binaries from configure
prefix=@prefix@;exec_prefix=@exec_prefix@;sbindir=@sbindir@
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
-MOUNTS_FILE=/proc/mounts
-PROC_CGROUPS_FILE=/proc/cgroups
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf
@@ -54,20 +52,6 @@ if [ -e /etc/sysconfig/cgconfig ]; then
. /etc/sysconfig/cgconfig
fi
-parse_mounts() {
- while read name mountpt fs opts other
- do
- if echo $name | grep -q $CGROUP_FS
- then
- maxindex=$(($maxindex+1))
- MOUNTPOINT[$maxindex]=$mountpt
- MOUNTOPTS[$maxindex]=$opts
- fi
- done < $MOUNTS_FILE
-
- return 0;
-}
-
create_default_groups() {
declare defaultcgroup
@@ -179,8 +163,6 @@ common() {
trap "trapped QUIT" QUIT
trap "trapped TERM" TERM
trap "trapped INT" INT
-
- parse_mounts
}
case $1 in