From 3275fd8210f689a6ea49a62aed4d4b460d4c26c7 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Wed, 25 Mar 2009 08:55:57 +0100 Subject: 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 Signed-off-by: Dhaval Giani --- scripts/init.d/cgconfig | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit