summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorIvana Varekova <varekova@redhat.com>2009-03-25 08:55:57 +0100
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-03-26 13:54:55 +0530
commit3275fd8210f689a6ea49a62aed4d4b460d4c26c7 (patch)
tree35c02c9ba8a196329b353c1b7a3adbe310c14d8b /scripts
parent2cb133c16e76254f0ed79daa7a9b17a8f02f06c3 (diff)
downloadlibcg-3275fd8210f689a6ea49a62aed4d4b460d4c26c7.zip
libcg-3275fd8210f689a6ea49a62aed4d4b460d4c26c7.tar.gz
libcg-3275fd8210f689a6ea49a62aed4d4b460d4c26c7.tar.xz
Minor fix to cgconfig init script
cgconfig script does not test the return value of cgconfigparser command so it continues to simulate start of the service, even if it was not pass successfuly. This is the first part of the patch from: http://sourceforge.net/mailarchive/forum.php?thread_name=20090120121851.GC4422%40linux.vnet.ibm.com&forum_name=libcg-devel which was not incorporated yet. Signed-off-by: Ivana Varekova <varekova@redhat.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init.d/cgconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/init.d/cgconfig b/scripts/init.d/cgconfig
index 1c60b86..6e6bcd6 100644
--- a/scripts/init.d/cgconfig
+++ b/scripts/init.d/cgconfig
@@ -79,6 +79,11 @@ start() {
then
#log_progress_msg "Starting cgconfig service: "
cgconfigparser -l $CONFIG_FILE
+ retval=$?
+ if [ $retval -ne 0 ]
+ then
+ return $retval
+ fi
fi
declare defaultcgroup