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 <[email protected]>
---

 scripts/init.d/cgconfig |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/scripts/init.d/cgconfig b/scripts/init.d/cgconfig
index 5b59786..51d172b 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


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to