]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Minor fix to cgconfig init script
authorIvana Varekova <varekova@redhat.com>
Wed, 25 Mar 2009 07:55:57 +0000 (08:55 +0100)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 26 Mar 2009 08:24:55 +0000 (13:54 +0530)
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>
scripts/init.d/cgconfig

index 1c60b86894a18a4671fe200580bba6c8f204dbbb..6e6bcd69eeba94b6de9df3f096d793453eb49b4f 100644 (file)
@@ -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